<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8" >
    <meta http-equiv="X-UA-Compatible" content="IE=11,IE=10,IE=9,IE=8" >
    <meta name="baidu-site-verification" content="dIcXMeY8Ya" />
    
    <title>maven | 即将拥有人鱼线丶</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0" >
    <meta name="keywords" content="FutaoSmile丶, 前端, Web, 付韬, 后端开发, Kotlin" >
    <meta name="description" content="FutaoSmile丶" >

    
    <link rel="alternative" href="/atom.xml" title="即将拥有人鱼线丶" type="application/atom+xml" >
    
    
    <link rel="shortcut icon" href="/coder957/favicon.ico" >
    
    <link rel="stylesheet" href="/coder957/css/style.css">
    <!--[if lt IE 9]>
    <script src="/coder957/js/html5.js"></script>
    <![endif]-->
    
<script>
    var _hmt = _hmt || [];
    (function() {
        var hm = document.createElement("script");
        hm.src = "//hm.baidu.com/hm.js?fd459238242776d173cdc64918fb32f2";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
    })();
</script>


</head>

<body class="home">
    <!--[if lt IE 9]>
    <div class="browsehappy">
        当前网页 <strong>不支持</strong>
        你正在使用的浏览器. 为了正常的访问, 请 <a href="http://browsehappy.com/">升级你的浏览器</a>.
    </div>
    <![endif]-->

    <!-- 博客头部 -->
    <header class="header">
    <section class="container header-main">
        <div class="logo">
            <a href="/coder957/">
                <div class="cover">
                    <span class="name">即将拥有人鱼线丶</span>
                    <span class="description"></span>
                </div>
            </a>
        </div>
        <div class="dropnav icon-paragraph-justify" id="JELON__btnDropNav"></div>
        <ul class="menu hidden" id="JELON__menu">
            
            <li rel="/coder957/2017/09/16/maven/index.html" class="item ">
                <a href="/coder957/" title="首页" class="icon-home">&nbsp;首页</a>
            </li>
            
            <li rel="/coder957/2017/09/16/maven/index.html" class="item ">
                <a href="/coder957/lab/" title="实验室" class="icon-lab">&nbsp;实验室</a>
            </li>
            
            <li rel="/coder957/2017/09/16/maven/index.html" class="item ">
                <a href="/coder957/about/" title="关于" class="icon-about">&nbsp;关于</a>
            </li>
            
            <li rel="/coder957/2017/09/16/maven/index.html" class="item ">
                <a href="/coder957/comment/" title="留言" class="icon-comment">&nbsp;留言</a>
            </li>
            
        </ul>
        <div class="profile clearfix">
            <div class="feeds fl">
                
                
                <p class="links">
                    
                        <a href="https://github.com/FutaoSmile" target="_blank">Github</a>
                        |
                    
                        <a href="http://www.jianshu.com/u/9e2e579df7dd" target="_blank">简书</a>
                        
                    
                </p>
                <p class="sns">
                    
                        <a href="" class="sinaweibo" target="_blank"><b>■</b> 新浪微博</a>
                    
                        <a href="https://gitee.com/FutaoSmile" class="qqweibo" target="_blank"><b>■</b> 码云</a>
                    
                    <!---->
                    <!--<a href="javascript: void(0);" class="wechat">-->
                        <!--<b>■</b>-->
                        <!--公众号-->
                        <!--<span class="popover">-->
                            <!--<img src="/coder957/img/wechat_mp.jpg" width="120" height="120" alt="我的微信订阅号">-->
                            <!--<i class="arrow"></i>-->
                        <!--</span>-->
                    <!--</a>-->
                </p>
                
            </div>
            <div class="avatar fr">
                <img src="/coder957/img/jelon.jpg" alt="avatar" title="FutaoSmile丶" >
            </div>
        </div>
    </section>
</header>


    <!-- 博客正文 -->
    <div class="container body clearfix">
        <section class="content">
            <div class="content-main widget">
                <!-- 文章页 -->
<!-- 文章 -->
<article class="post article">
    <header class="text-center">
        <h3 class="post-title"><span>maven</span></h3>
    </header>
    <p class="post-meta text-center">
        FutaoSmile丶 发表于
        <time datetime="2017-09-15T16:00:00.000Z">2017-09-16</time>
    </p>
    <div class="post-content">
        <p>maven介绍以及基本操作</p>
<p>des…</p>
<a id="more"></a>
<blockquote>
<p>Maven-Apache</p>
<p>项目构建工具，用来管理项目依赖</p>
</blockquote>
<p>Maven构建的项目非常小<br>jar包在仓库，而不在项目下面，Maven通过坐标去查找jar包（本地或中央仓库）。</p>
<p><strong>坐标：</strong> struts2-core-2.3.24.jar<br>Apache(公司名称)+Struts2(项目名称)+2.3.24(版本信息)</p>
<hr>
<h3 id="Maven两大核心"><a href="#Maven两大核心" class="headerlink" title="Maven两大核心"></a>Maven两大核心</h3><ol>
<li><strong>依赖管理：</strong> 对jar包管理</li>
<li><strong>项目构建：</strong> 项目在编码完成后，编译，打包，测试，部署–Maven通过命令来实现</li>
</ol>
<h3 id="Maven安装"><a href="#Maven安装" class="headerlink" title="Maven安装"></a>Maven安装</h3><p>Maven安装前提：Maven程序由java开发，依赖jdk</p>
<p>java环境变量配置</p>
<p>maven环境变量配置<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div></pre></td><td class="code"><pre><div class="line">MAVEN_HOME                             bin的上一级</div><div class="line">PATH     ;%MAVEN_HOME%\bin;            bin目录</div><div class="line">cmd-&gt;</div><div class="line">java -version</div><div class="line">mvn -v</div></pre></td></tr></table></figure></p>
<hr>
<h3 id="Maven本地仓库配置"><a href="#Maven本地仓库配置" class="headerlink" title="Maven本地仓库配置"></a>Maven本地仓库配置</h3><p><img src="http://upload-images.jianshu.io/upload_images/1846623-17ab80d8be070233.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="pic"></p>
<p>配置本地仓库：<br>\apache-maven-3.5.0\conf\settings.xml<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div></pre></td><td class="code"><pre><div class="line">&lt;!-- localRepository</div><div class="line"> | The path to the local repository maven will use to store artifacts.</div><div class="line"> |</div><div class="line"> | Default: $&#123;user.home&#125;/.m2/repositoryrepository</div><div class="line">&lt;localRepository&gt;/path/to/local/repo&lt;/localRepository&gt;</div><div class="line">--&gt;</div></pre></td></tr></table></figure></p>
<h3 id="标准目录结构"><a href="#标准目录结构" class="headerlink" title="标准目录结构"></a>标准目录结构</h3><p><img src="http://upload-images.jianshu.io/upload_images/1846623-02d26d4669a9c8fd.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="pic"></p>
<h3 id="Maven常用命令"><a href="#Maven常用命令" class="headerlink" title="Maven常用命令"></a>Maven常用命令</h3><p><strong>java -clean:</strong> 删除之前编译好的.class文件，重新编译一次</p>
<p><strong>mvn clean：</strong> 工作插件(可以在本地maven仓库找到对应的jar包)：maven-clean-plugin-清理项目下的target目录</p>
<p><strong>mvn compile：</strong> 工作插件：maven-compiler-plugin-编译，将项目中的.java文件编译成.class文件</p>
<p><strong>mvn test：</strong> 单元测试，将项目根目录下面src/test/java目录下的单元测试类中的方法都会执行，类名要求：XxxxTest.java</p>
<p><strong>mvn package：</strong> 将项目打包到target目录下</p>
<p>web Project —-war包</p>
<p>java Project —java包</p>
<p><strong>mvn install ：</strong> 安装（打包）：将项目打包的文件放到本地仓库。解决本地多个项目共用一个jar包，该jar包发生更改后其他项目不需要改动，因为使用的是该jar包在maven本地仓库的坐标</p>
<p>后面的动作会包含前面的动作</p>
<p>Maven项目的生命周期</p>
<p>在Maven中存在“三套”生命周期，每一套生命周期互相独立，互不影响。但是在同一套生命周期内，执行后面的命令，前面的命令会自动执行。<br><strong>CleanLifeCycle：清理生命周期</strong><br>clean<br><strong>defaultLifeCycle：默认生命周期</strong><br>compile，test，package，install，deploy<br><strong>siteLiftCycle：站点生命周期</strong></p>
<h3 id="site坐标信息"><a href="#site坐标信息" class="headerlink" title="site坐标信息"></a>site坐标信息</h3><p><strong>GroupId：</strong> 公司域名倒序</p>
<p><strong>ArtifactId：</strong> 项目名称</p>
<p><strong>Version：</strong> 版本，SNAPSHOP：测试版本，RELEASES：发布版本</p>
<p>Packaging：打包方式，jar：JAVA工程，war：web工程，pom：父工程</p>
<h3 id="Maven依赖范围"><a href="#Maven依赖范围" class="headerlink" title="Maven依赖范围"></a>Maven依赖范围</h3><p>compile:编译依赖范围(默认),对其三种都有效</p>
<p>test:测试依赖范围,只对测试classpath有效</p>
<p>runtime:运行依赖范围,只对测试和运行有效,编译主代码无效,例如JDBC</p>
<p>provided:已提供依赖范围,只对编译和测试有效,运行时无效,例如servlet-api</p>
<p>system:系统依赖范围.谨慎使用.例如本地的,maven仓库之外的类库文件</p>
<p>import(maven2.0.9以上):导入依赖范围,不会对其他三种有影响</p>
<hr>
<p>pom.xml</p>
<p>本项目的坐标信息</p>
<p>本项目jdk编译版本信息</p>
<p>本项目需要的插件/依赖信息</p>
<h3 id="项目经验总结"><a href="#项目经验总结" class="headerlink" title="项目经验总结"></a>项目经验总结</h3><p>子pom项目继承父pom项目，父项目必须在<code>&lt;dependencies&gt; &lt;/dependencies&gt;</code>外层再包裹一层<code>&lt;dependencyManagement&gt; &lt;/dependencyManagement&gt;</code>，子项目才能继承到父项目的依赖的版本号，子项目才可以免写 <code>&lt;version&gt;&lt;/version&gt;</code><br>如果添加了<code>&lt;dependencyManagement&gt; &lt;/dependencyManagement&gt;</code>,那么当前项目不会自动导包。</p>
<p><strong>将jar包手动打到本地仓库</strong><br>下载jar包。<br>在jar包文件夹下执行命令：<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">mvn install:install-file -DgroupId=com.alipay -DartifactId=com.alipay -Dversion=20170725114609 -Dpackaging=jar -Dfile=alipay-sdk-java20170725114550.jar</div></pre></td></tr></table></figure></p>
<p><strong>史上最全的maven pom.xml文件教程详解</strong><br><em>参考<a href="http://www.blogjava.net/hellxoul/archive/2013/05/16/399345.html" target="_blank" rel="external">http://www.blogjava.net/hellxoul/archive/2013/05/16/399345.html</a></em><br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div><div class="line">18</div><div class="line">19</div><div class="line">20</div><div class="line">21</div><div class="line">22</div><div class="line">23</div><div class="line">24</div><div class="line">25</div><div class="line">26</div><div class="line">27</div><div class="line">28</div><div class="line">29</div><div class="line">30</div><div class="line">31</div><div class="line">32</div><div class="line">33</div><div class="line">34</div><div class="line">35</div><div class="line">36</div><div class="line">37</div><div class="line">38</div><div class="line">39</div><div class="line">40</div><div class="line">41</div><div class="line">42</div><div class="line">43</div><div class="line">44</div><div class="line">45</div><div class="line">46</div><div class="line">47</div><div class="line">48</div><div class="line">49</div><div class="line">50</div><div class="line">51</div><div class="line">52</div><div class="line">53</div><div class="line">54</div><div class="line">55</div><div class="line">56</div><div class="line">57</div><div class="line">58</div><div class="line">59</div><div class="line">60</div><div class="line">61</div><div class="line">62</div><div class="line">63</div><div class="line">64</div><div class="line">65</div><div class="line">66</div><div class="line">67</div><div class="line">68</div><div class="line">69</div><div class="line">70</div><div class="line">71</div><div class="line">72</div><div class="line">73</div><div class="line">74</div><div class="line">75</div><div class="line">76</div><div class="line">77</div><div class="line">78</div><div class="line">79</div><div class="line">80</div><div class="line">81</div><div class="line">82</div><div class="line">83</div><div class="line">84</div><div class="line">85</div><div class="line">86</div><div class="line">87</div><div class="line">88</div><div class="line">89</div><div class="line">90</div><div class="line">91</div><div class="line">92</div><div class="line">93</div><div class="line">94</div><div class="line">95</div><div class="line">96</div><div class="line">97</div><div class="line">98</div><div class="line">99</div><div class="line">100</div><div class="line">101</div><div class="line">102</div><div class="line">103</div><div class="line">104</div><div class="line">105</div><div class="line">106</div><div class="line">107</div><div class="line">108</div><div class="line">109</div><div class="line">110</div><div class="line">111</div><div class="line">112</div><div class="line">113</div><div class="line">114</div><div class="line">115</div><div class="line">116</div><div class="line">117</div><div class="line">118</div><div class="line">119</div><div class="line">120</div><div class="line">121</div><div class="line">122</div><div class="line">123</div><div class="line">124</div><div class="line">125</div><div class="line">126</div><div class="line">127</div><div class="line">128</div><div class="line">129</div><div class="line">130</div><div class="line">131</div><div class="line">132</div><div class="line">133</div><div class="line">134</div><div class="line">135</div><div class="line">136</div><div class="line">137</div><div class="line">138</div><div class="line">139</div><div class="line">140</div><div class="line">141</div><div class="line">142</div><div class="line">143</div><div class="line">144</div><div class="line">145</div><div class="line">146</div><div class="line">147</div><div class="line">148</div><div class="line">149</div><div class="line">150</div><div class="line">151</div><div class="line">152</div><div class="line">153</div><div class="line">154</div><div class="line">155</div><div class="line">156</div><div class="line">157</div><div class="line">158</div><div class="line">159</div><div class="line">160</div><div class="line">161</div><div class="line">162</div><div class="line">163</div><div class="line">164</div><div class="line">165</div><div class="line">166</div><div class="line">167</div><div class="line">168</div><div class="line">169</div><div class="line">170</div><div class="line">171</div><div class="line">172</div><div class="line">173</div><div class="line">174</div><div class="line">175</div><div class="line">176</div><div class="line">177</div><div class="line">178</div><div class="line">179</div><div class="line">180</div><div class="line">181</div><div class="line">182</div><div class="line">183</div><div class="line">184</div><div class="line">185</div><div class="line">186</div><div class="line">187</div><div class="line">188</div><div class="line">189</div><div class="line">190</div><div class="line">191</div><div class="line">192</div><div class="line">193</div><div class="line">194</div><div class="line">195</div><div class="line">196</div><div class="line">197</div><div class="line">198</div><div class="line">199</div><div class="line">200</div><div class="line">201</div><div class="line">202</div><div class="line">203</div><div class="line">204</div><div class="line">205</div><div class="line">206</div><div class="line">207</div><div class="line">208</div><div class="line">209</div><div class="line">210</div><div class="line">211</div><div class="line">212</div><div class="line">213</div><div class="line">214</div><div class="line">215</div><div class="line">216</div><div class="line">217</div><div class="line">218</div><div class="line">219</div><div class="line">220</div><div class="line">221</div><div class="line">222</div><div class="line">223</div><div class="line">224</div><div class="line">225</div><div class="line">226</div><div class="line">227</div><div class="line">228</div><div class="line">229</div><div class="line">230</div><div class="line">231</div><div class="line">232</div><div class="line">233</div><div class="line">234</div><div class="line">235</div><div class="line">236</div><div class="line">237</div><div class="line">238</div><div class="line">239</div><div class="line">240</div><div class="line">241</div><div class="line">242</div><div class="line">243</div><div class="line">244</div><div class="line">245</div><div class="line">246</div><div class="line">247</div><div class="line">248</div><div class="line">249</div><div class="line">250</div><div class="line">251</div><div class="line">252</div><div class="line">253</div><div class="line">254</div><div class="line">255</div><div class="line">256</div><div class="line">257</div><div class="line">258</div><div class="line">259</div><div class="line">260</div><div class="line">261</div><div class="line">262</div><div class="line">263</div><div class="line">264</div><div class="line">265</div><div class="line">266</div><div class="line">267</div><div class="line">268</div><div class="line">269</div><div class="line">270</div><div class="line">271</div><div class="line">272</div><div class="line">273</div><div class="line">274</div><div class="line">275</div><div class="line">276</div><div class="line">277</div><div class="line">278</div><div class="line">279</div><div class="line">280</div><div class="line">281</div><div class="line">282</div><div class="line">283</div><div class="line">284</div><div class="line">285</div><div class="line">286</div><div class="line">287</div><div class="line">288</div><div class="line">289</div><div class="line">290</div><div class="line">291</div><div class="line">292</div><div class="line">293</div><div class="line">294</div><div class="line">295</div><div class="line">296</div><div class="line">297</div><div class="line">298</div><div class="line">299</div><div class="line">300</div><div class="line">301</div><div class="line">302</div><div class="line">303</div><div class="line">304</div><div class="line">305</div><div class="line">306</div><div class="line">307</div><div class="line">308</div><div class="line">309</div><div class="line">310</div><div class="line">311</div><div class="line">312</div><div class="line">313</div><div class="line">314</div><div class="line">315</div><div class="line">316</div><div class="line">317</div><div class="line">318</div><div class="line">319</div><div class="line">320</div><div class="line">321</div><div class="line">322</div><div class="line">323</div><div class="line">324</div><div class="line">325</div><div class="line">326</div><div class="line">327</div><div class="line">328</div><div class="line">329</div><div class="line">330</div><div class="line">331</div><div class="line">332</div><div class="line">333</div><div class="line">334</div><div class="line">335</div><div class="line">336</div><div class="line">337</div><div class="line">338</div><div class="line">339</div><div class="line">340</div><div class="line">341</div><div class="line">342</div><div class="line">343</div><div class="line">344</div><div class="line">345</div><div class="line">346</div><div class="line">347</div><div class="line">348</div><div class="line">349</div><div class="line">350</div><div class="line">351</div><div class="line">352</div><div class="line">353</div><div class="line">354</div><div class="line">355</div><div class="line">356</div><div class="line">357</div><div class="line">358</div><div class="line">359</div><div class="line">360</div><div class="line">361</div><div class="line">362</div><div class="line">363</div><div class="line">364</div><div class="line">365</div><div class="line">366</div><div class="line">367</div><div class="line">368</div><div class="line">369</div><div class="line">370</div><div class="line">371</div><div class="line">372</div><div class="line">373</div><div class="line">374</div><div class="line">375</div><div class="line">376</div><div class="line">377</div><div class="line">378</div><div class="line">379</div><div class="line">380</div><div class="line">381</div><div class="line">382</div><div class="line">383</div><div class="line">384</div><div class="line">385</div><div class="line">386</div><div class="line">387</div><div class="line">388</div><div class="line">389</div><div class="line">390</div><div class="line">391</div><div class="line">392</div><div class="line">393</div><div class="line">394</div><div class="line">395</div><div class="line">396</div><div class="line">397</div><div class="line">398</div><div class="line">399</div><div class="line">400</div><div class="line">401</div><div class="line">402</div><div class="line">403</div><div class="line">404</div><div class="line">405</div><div class="line">406</div><div class="line">407</div><div class="line">408</div><div class="line">409</div><div class="line">410</div><div class="line">411</div><div class="line">412</div><div class="line">413</div><div class="line">414</div><div class="line">415</div><div class="line">416</div><div class="line">417</div><div class="line">418</div><div class="line">419</div><div class="line">420</div><div class="line">421</div><div class="line">422</div><div class="line">423</div><div class="line">424</div><div class="line">425</div><div class="line">426</div><div class="line">427</div><div class="line">428</div><div class="line">429</div><div class="line">430</div><div class="line">431</div><div class="line">432</div><div class="line">433</div><div class="line">434</div><div class="line">435</div><div class="line">436</div><div class="line">437</div><div class="line">438</div><div class="line">439</div><div class="line">440</div><div class="line">441</div><div class="line">442</div><div class="line">443</div><div class="line">444</div><div class="line">445</div><div class="line">446</div><div class="line">447</div><div class="line">448</div><div class="line">449</div><div class="line">450</div><div class="line">451</div><div class="line">452</div><div class="line">453</div><div class="line">454</div><div class="line">455</div><div class="line">456</div><div class="line">457</div><div class="line">458</div><div class="line">459</div><div class="line">460</div><div class="line">461</div><div class="line">462</div><div class="line">463</div><div class="line">464</div><div class="line">465</div><div class="line">466</div><div class="line">467</div><div class="line">468</div><div class="line">469</div><div class="line">470</div><div class="line">471</div><div class="line">472</div><div class="line">473</div><div class="line">474</div><div class="line">475</div><div class="line">476</div><div class="line">477</div><div class="line">478</div><div class="line">479</div><div class="line">480</div><div class="line">481</div><div class="line">482</div><div class="line">483</div><div class="line">484</div><div class="line">485</div><div class="line">486</div><div class="line">487</div><div class="line">488</div><div class="line">489</div><div class="line">490</div><div class="line">491</div><div class="line">492</div><div class="line">493</div><div class="line">494</div><div class="line">495</div><div class="line">496</div><div class="line">497</div><div class="line">498</div><div class="line">499</div><div class="line">500</div><div class="line">501</div><div class="line">502</div><div class="line">503</div><div class="line">504</div><div class="line">505</div><div class="line">506</div><div class="line">507</div><div class="line">508</div><div class="line">509</div><div class="line">510</div><div class="line">511</div><div class="line">512</div><div class="line">513</div><div class="line">514</div><div class="line">515</div><div class="line">516</div><div class="line">517</div><div class="line">518</div><div class="line">519</div><div class="line">520</div><div class="line">521</div><div class="line">522</div><div class="line">523</div><div class="line">524</div><div class="line">525</div><div class="line">526</div><div class="line">527</div><div class="line">528</div><div class="line">529</div><div class="line">530</div><div class="line">531</div><div class="line">532</div><div class="line">533</div><div class="line">534</div><div class="line">535</div><div class="line">536</div><div class="line">537</div><div class="line">538</div><div class="line">539</div><div class="line">540</div><div class="line">541</div><div class="line">542</div><div class="line">543</div><div class="line">544</div><div class="line">545</div><div class="line">546</div><div class="line">547</div><div class="line">548</div><div class="line">549</div><div class="line">550</div><div class="line">551</div><div class="line">552</div><div class="line">553</div><div class="line">554</div><div class="line">555</div><div class="line">556</div><div class="line">557</div><div class="line">558</div><div class="line">559</div><div class="line">560</div><div class="line">561</div><div class="line">562</div><div class="line">563</div><div class="line">564</div><div class="line">565</div><div class="line">566</div><div class="line">567</div><div class="line">568</div><div class="line">569</div><div class="line">570</div><div class="line">571</div><div class="line">572</div><div class="line">573</div><div class="line">574</div><div class="line">575</div><div class="line">576</div><div class="line">577</div><div class="line">578</div><div class="line">579</div><div class="line">580</div><div class="line">581</div><div class="line">582</div><div class="line">583</div><div class="line">584</div><div class="line">585</div><div class="line">586</div><div class="line">587</div><div class="line">588</div><div class="line">589</div><div class="line">590</div><div class="line">591</div><div class="line">592</div><div class="line">593</div><div class="line">594</div><div class="line">595</div><div class="line">596</div><div class="line">597</div><div class="line">598</div><div class="line">599</div><div class="line">600</div><div class="line">601</div><div class="line">602</div><div class="line">603</div><div class="line">604</div><div class="line">605</div><div class="line">606</div><div class="line">607</div><div class="line">608</div><div class="line">609</div><div class="line">610</div><div class="line">611</div><div class="line">612</div><div class="line">613</div><div class="line">614</div><div class="line">615</div><div class="line">616</div><div class="line">617</div><div class="line">618</div><div class="line">619</div><div class="line">620</div><div class="line">621</div><div class="line">622</div><div class="line">623</div><div class="line">624</div><div class="line">625</div><div class="line">626</div><div class="line">627</div><div class="line">628</div><div class="line">629</div><div class="line">630</div><div class="line">631</div><div class="line">632</div><div class="line">633</div><div class="line">634</div><div class="line">635</div><div class="line">636</div><div class="line">637</div><div class="line">638</div><div class="line">639</div><div class="line">640</div><div class="line">641</div><div class="line">642</div><div class="line">643</div><div class="line">644</div><div class="line">645</div><div class="line">646</div><div class="line">647</div><div class="line">648</div><div class="line">649</div><div class="line">650</div><div class="line">651</div><div class="line">652</div><div class="line">653</div><div class="line">654</div><div class="line">655</div><div class="line">656</div><div class="line">657</div><div class="line">658</div><div class="line">659</div><div class="line">660</div><div class="line">661</div><div class="line">662</div><div class="line">663</div><div class="line">664</div><div class="line">665</div><div class="line">666</div><div class="line">667</div><div class="line">668</div><div class="line">669</div><div class="line">670</div><div class="line">671</div><div class="line">672</div><div class="line">673</div><div class="line">674</div><div class="line">675</div><div class="line">676</div><div class="line">677</div><div class="line">678</div><div class="line">679</div><div class="line">680</div><div class="line">681</div><div class="line">682</div><div class="line">683</div><div class="line">684</div><div class="line">685</div><div class="line">686</div><div class="line">687</div><div class="line">688</div><div class="line">689</div><div class="line">690</div><div class="line">691</div><div class="line">692</div><div class="line">693</div><div class="line">694</div><div class="line">695</div><div class="line">696</div><div class="line">697</div><div class="line">698</div><div class="line">699</div><div class="line">700</div><div class="line">701</div><div class="line">702</div><div class="line">703</div><div class="line">704</div><div class="line">705</div><div class="line">706</div><div class="line">707</div><div class="line">708</div><div class="line">709</div><div class="line">710</div><div class="line">711</div><div class="line">712</div><div class="line">713</div><div class="line">714</div><div class="line">715</div><div class="line">716</div><div class="line">717</div><div class="line">718</div><div class="line">719</div><div class="line">720</div><div class="line">721</div><div class="line">722</div><div class="line">723</div><div class="line">724</div><div class="line">725</div><div class="line">726</div><div class="line">727</div><div class="line">728</div><div class="line">729</div><div class="line">730</div><div class="line">731</div><div class="line">732</div><div class="line">733</div><div class="line">734</div><div class="line">735</div><div class="line">736</div><div class="line">737</div><div class="line">738</div><div class="line">739</div><div class="line">740</div><div class="line">741</div><div class="line">742</div><div class="line">743</div><div class="line">744</div><div class="line">745</div><div class="line">746</div><div class="line">747</div><div class="line">748</div><div class="line">749</div><div class="line">750</div><div class="line">751</div><div class="line">752</div><div class="line">753</div><div class="line">754</div><div class="line">755</div><div class="line">756</div><div class="line">757</div><div class="line">758</div><div class="line">759</div><div class="line">760</div><div class="line">761</div><div class="line">762</div><div class="line">763</div><div class="line">764</div><div class="line">765</div><div class="line">766</div><div class="line">767</div><div class="line">768</div><div class="line">769</div><div class="line">770</div><div class="line">771</div><div class="line">772</div><div class="line">773</div><div class="line">774</div><div class="line">775</div><div class="line">776</div><div class="line">777</div><div class="line">778</div><div class="line">779</div><div class="line">780</div><div class="line">781</div><div class="line">782</div><div class="line">783</div><div class="line">784</div><div class="line">785</div><div class="line">786</div><div class="line">787</div><div class="line">788</div><div class="line">789</div><div class="line">790</div><div class="line">791</div><div class="line">792</div><div class="line">793</div><div class="line">794</div><div class="line">795</div><div class="line">796</div><div class="line">797</div><div class="line">798</div><div class="line">799</div><div class="line">800</div><div class="line">801</div><div class="line">802</div><div class="line">803</div><div class="line">804</div><div class="line">805</div><div class="line">806</div><div class="line">807</div><div class="line">808</div><div class="line">809</div><div class="line">810</div><div class="line">811</div><div class="line">812</div><div class="line">813</div><div class="line">814</div><div class="line">815</div><div class="line">816</div><div class="line">817</div><div class="line">818</div><div class="line">819</div><div class="line">820</div><div class="line">821</div><div class="line">822</div><div class="line">823</div><div class="line">824</div><div class="line">825</div><div class="line">826</div><div class="line">827</div><div class="line">828</div><div class="line">829</div><div class="line">830</div><div class="line">831</div><div class="line">832</div><div class="line">833</div><div class="line">834</div><div class="line">835</div><div class="line">836</div><div class="line">837</div><div class="line">838</div><div class="line">839</div><div class="line">840</div><div class="line">841</div><div class="line">842</div><div class="line">843</div><div class="line">844</div><div class="line">845</div><div class="line">846</div><div class="line">847</div><div class="line">848</div><div class="line">849</div><div class="line">850</div><div class="line">851</div><div class="line">852</div><div class="line">853</div><div class="line">854</div><div class="line">855</div><div class="line">856</div><div class="line">857</div><div class="line">858</div><div class="line">859</div><div class="line">860</div><div class="line">861</div><div class="line">862</div><div class="line">863</div><div class="line">864</div><div class="line">865</div><div class="line">866</div><div class="line">867</div><div class="line">868</div><div class="line">869</div><div class="line">870</div><div class="line">871</div><div class="line">872</div><div class="line">873</div><div class="line">874</div><div class="line">875</div><div class="line">876</div><div class="line">877</div><div class="line">878</div><div class="line">879</div><div class="line">880</div><div class="line">881</div><div class="line">882</div><div class="line">883</div><div class="line">884</div><div class="line">885</div><div class="line">886</div><div class="line">887</div><div class="line">888</div><div class="line">889</div><div class="line">890</div><div class="line">891</div><div class="line">892</div><div class="line">893</div><div class="line">894</div><div class="line">895</div><div class="line">896</div><div class="line">897</div><div class="line">898</div><div class="line">899</div><div class="line">900</div><div class="line">901</div><div class="line">902</div><div class="line">903</div><div class="line">904</div><div class="line">905</div><div class="line">906</div><div class="line">907</div><div class="line">908</div><div class="line">909</div><div class="line">910</div><div class="line">911</div><div class="line">912</div><div class="line">913</div><div class="line">914</div><div class="line">915</div><div class="line">916</div><div class="line">917</div><div class="line">918</div><div class="line">919</div><div class="line">920</div><div class="line">921</div><div class="line">922</div><div class="line">923</div><div class="line">924</div><div class="line">925</div><div class="line">926</div><div class="line">927</div><div class="line">928</div><div class="line">929</div><div class="line">930</div><div class="line">931</div><div class="line">932</div><div class="line">933</div><div class="line">934</div><div class="line">935</div><div class="line">936</div><div class="line">937</div><div class="line">938</div><div class="line">939</div><div class="line">940</div><div class="line">941</div><div class="line">942</div><div class="line">943</div><div class="line">944</div><div class="line">945</div><div class="line">946</div><div class="line">947</div><div class="line">948</div><div class="line">949</div><div class="line">950</div><div class="line">951</div><div class="line">952</div><div class="line">953</div><div class="line">954</div><div class="line">955</div><div class="line">956</div><div class="line">957</div><div class="line">958</div><div class="line">959</div><div class="line">960</div><div class="line">961</div><div class="line">962</div><div class="line">963</div><div class="line">964</div><div class="line">965</div><div class="line">966</div><div class="line">967</div><div class="line">968</div><div class="line">969</div><div class="line">970</div><div class="line">971</div><div class="line">972</div><div class="line">973</div><div class="line">974</div><div class="line">975</div><div class="line">976</div><div class="line">977</div><div class="line">978</div><div class="line">979</div><div class="line">980</div><div class="line">981</div><div class="line">982</div><div class="line">983</div><div class="line">984</div><div class="line">985</div><div class="line">986</div><div class="line">987</div><div class="line">988</div><div class="line">989</div><div class="line">990</div><div class="line">991</div><div class="line">992</div><div class="line">993</div><div class="line">994</div><div class="line">995</div><div class="line">996</div><div class="line">997</div><div class="line">998</div><div class="line">999</div><div class="line">1000</div><div class="line">1001</div><div class="line">1002</div><div class="line">1003</div><div class="line">1004</div><div class="line">1005</div><div class="line">1006</div><div class="line">1007</div><div class="line">1008</div><div class="line">1009</div><div class="line">1010</div><div class="line">1011</div><div class="line">1012</div><div class="line">1013</div><div class="line">1014</div><div class="line">1015</div><div class="line">1016</div><div class="line">1017</div><div class="line">1018</div><div class="line">1019</div><div class="line">1020</div><div class="line">1021</div><div class="line">1022</div><div class="line">1023</div><div class="line">1024</div><div class="line">1025</div><div class="line">1026</div><div class="line">1027</div><div class="line">1028</div><div class="line">1029</div><div class="line">1030</div><div class="line">1031</div><div class="line">1032</div><div class="line">1033</div><div class="line">1034</div><div class="line">1035</div><div class="line">1036</div><div class="line">1037</div><div class="line">1038</div><div class="line">1039</div><div class="line">1040</div><div class="line">1041</div><div class="line">1042</div><div class="line">1043</div><div class="line">1044</div><div class="line">1045</div><div class="line">1046</div><div class="line">1047</div><div class="line">1048</div><div class="line">1049</div><div class="line">1050</div><div class="line">1051</div><div class="line">1052</div><div class="line">1053</div><div class="line">1054</div><div class="line">1055</div><div class="line">1056</div><div class="line">1057</div><div class="line">1058</div><div class="line">1059</div><div class="line">1060</div><div class="line">1061</div><div class="line">1062</div><div class="line">1063</div><div class="line">1064</div><div class="line">1065</div><div class="line">1066</div><div class="line">1067</div><div class="line">1068</div><div class="line">1069</div><div class="line">1070</div><div class="line">1071</div><div class="line">1072</div><div class="line">1073</div><div class="line">1074</div><div class="line">1075</div><div class="line">1076</div><div class="line">1077</div><div class="line">1078</div><div class="line">1079</div><div class="line">1080</div><div class="line">1081</div><div class="line">1082</div><div class="line">1083</div><div class="line">1084</div><div class="line">1085</div><div class="line">1086</div><div class="line">1087</div><div class="line">1088</div><div class="line">1089</div><div class="line">1090</div><div class="line">1091</div><div class="line">1092</div><div class="line">1093</div><div class="line">1094</div><div class="line">1095</div><div class="line">1096</div><div class="line">1097</div><div class="line">1098</div><div class="line">1099</div><div class="line">1100</div><div class="line">1101</div><div class="line">1102</div><div class="line">1103</div><div class="line">1104</div><div class="line">1105</div><div class="line">1106</div><div class="line">1107</div><div class="line">1108</div><div class="line">1109</div><div class="line">1110</div><div class="line">1111</div><div class="line">1112</div><div class="line">1113</div><div class="line">1114</div><div class="line">1115</div><div class="line">1116</div><div class="line">1117</div><div class="line">1118</div><div class="line">1119</div><div class="line">1120</div><div class="line">1121</div><div class="line">1122</div><div class="line">1123</div><div class="line">1124</div><div class="line">1125</div><div class="line">1126</div><div class="line">1127</div><div class="line">1128</div><div class="line">1129</div><div class="line">1130</div><div class="line">1131</div><div class="line">1132</div><div class="line">1133</div><div class="line">1134</div><div class="line">1135</div><div class="line">1136</div><div class="line">1137</div><div class="line">1138</div><div class="line">1139</div><div class="line">1140</div><div class="line">1141</div><div class="line">1142</div><div class="line">1143</div><div class="line">1144</div><div class="line">1145</div><div class="line">1146</div><div class="line">1147</div><div class="line">1148</div><div class="line">1149</div><div class="line">1150</div><div class="line">1151</div><div class="line">1152</div><div class="line">1153</div><div class="line">1154</div><div class="line">1155</div><div class="line">1156</div><div class="line">1157</div><div class="line">1158</div><div class="line">1159</div><div class="line">1160</div><div class="line">1161</div><div class="line">1162</div><div class="line">1163</div><div class="line">1164</div><div class="line">1165</div><div class="line">1166</div><div class="line">1167</div><div class="line">1168</div><div class="line">1169</div><div class="line">1170</div><div class="line">1171</div><div class="line">1172</div><div class="line">1173</div><div class="line">1174</div><div class="line">1175</div><div class="line">1176</div><div class="line">1177</div><div class="line">1178</div><div class="line">1179</div><div class="line">1180</div><div class="line">1181</div><div class="line">1182</div><div class="line">1183</div><div class="line">1184</div><div class="line">1185</div><div class="line">1186</div><div class="line">1187</div><div class="line">1188</div><div class="line">1189</div><div class="line">1190</div><div class="line">1191</div><div class="line">1192</div><div class="line">1193</div><div class="line">1194</div><div class="line">1195</div><div class="line">1196</div><div class="line">1197</div><div class="line">1198</div><div class="line">1199</div><div class="line">1200</div><div class="line">1201</div><div class="line">1202</div><div class="line">1203</div><div class="line">1204</div><div class="line">1205</div><div class="line">1206</div><div class="line">1207</div><div class="line">1208</div><div class="line">1209</div><div class="line">1210</div><div class="line">1211</div><div class="line">1212</div><div class="line">1213</div><div class="line">1214</div><div class="line">1215</div><div class="line">1216</div><div class="line">1217</div><div class="line">1218</div><div class="line">1219</div><div class="line">1220</div><div class="line">1221</div><div class="line">1222</div><div class="line">1223</div><div class="line">1224</div><div class="line">1225</div><div class="line">1226</div><div class="line">1227</div><div class="line">1228</div><div class="line">1229</div><div class="line">1230</div><div class="line">1231</div><div class="line">1232</div><div class="line">1233</div><div class="line">1234</div><div class="line">1235</div><div class="line">1236</div><div class="line">1237</div><div class="line">1238</div><div class="line">1239</div><div class="line">1240</div></pre></td><td class="code"><pre><div class="line">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;</div><div class="line">&lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot;</div><div class="line">         xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;</div><div class="line">         xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd &quot;&gt;</div><div class="line">    &lt;!--父项目的坐标。如果项目中没有规定某个元素的值，那么父项目中的对应值即为项目的默认值。 坐标包括group ID，artifact ID和 version。--&gt;</div><div class="line">    &lt;parent&gt;</div><div class="line">        &lt;!--被继承的父项目的构件标识符--&gt;</div><div class="line">        &lt;artifactId&gt;&lt;/artifactId&gt;</div><div class="line">        &lt;!--被继承的父项目的全球唯一标识符--&gt;</div><div class="line">        &lt;groupId&gt;&lt;/groupId&gt;</div><div class="line">        &lt;!--被继承的父项目的版本--&gt;</div><div class="line">        &lt;version&gt;&lt;/version&gt;</div><div class="line">        &lt;!--父项目的pom.xml文件的相对路径。相对路径允许你选择一个不同的路径。默认值是../pom.xml。Maven首先在构建当前项目的地方寻找父项目的pom，其次在文件系统的这个位置（relativePath位置），然后在本地仓库，最后在远程仓库寻找父项目的pom。--&gt;</div><div class="line">        &lt;relativePath/&gt;</div><div class="line">    &lt;/parent&gt;</div><div class="line"></div><div class="line">    &lt;!--声明项目描述符遵循哪一个POM模型版本。模型本身的版本很少改变，虽然如此，但它仍然是必不可少的，这是为了当Maven引入了新的特性或者其他模型变更的时候，确保稳定性。--&gt;</div><div class="line"></div><div class="line">    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;</div><div class="line"></div><div class="line">    &lt;!--项目的全球唯一标识符，通常使用全限定的包名区分该项目和其他项目。并且构建时生成的路径也是由此生成， 如com.mycompany.app生成的相对路径为：/com/mycompany/app--&gt;</div><div class="line"></div><div class="line">    &lt;groupId&gt;asia.banseon&lt;/groupId&gt;</div><div class="line"></div><div class="line">    &lt;!--构件的标识符，它和group ID一起唯一标识一个构件。换句话说，你不能有两个不同的项目拥有同样的artifact ID和groupID；在某个特定的group ID下，artifact ID也必须是唯一的。构件是项目产生的或使用的一个东西，Maven为项目产生的构件包括：JARs，源码，二进制发布和WARs等。--&gt;</div><div class="line"></div><div class="line">    &lt;artifactId&gt;banseon-maven2&lt;/artifactId&gt;</div><div class="line"></div><div class="line">    &lt;!--项目产生的构件类型，例如jar、war、ear、pom。插件可以创建他们自己的构件类型，所以前面列的不是全部构件类型--&gt;</div><div class="line"></div><div class="line">    &lt;packaging&gt;jar&lt;/packaging&gt;</div><div class="line"></div><div class="line">    &lt;!--项目当前版本，格式为:主版本.次版本.增量版本-限定版本号--&gt;</div><div class="line"></div><div class="line">    &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;</div><div class="line"></div><div class="line">    &lt;!--项目的名称, Maven产生的文档用--&gt;</div><div class="line"></div><div class="line">    &lt;name&gt;banseon-maven&lt;/name&gt;</div><div class="line"></div><div class="line">    &lt;!--项目主页的URL, Maven产生的文档用--&gt;</div><div class="line"></div><div class="line">    &lt;url&gt;http://www.baidu.com/banseon&lt;/url&gt;</div><div class="line"></div><div class="line">    &lt;!--项目的详细描述, Maven 产生的文档用。  当这个元素能够用HTML格式描述时（例如，CDATA中的文本会被解析器忽略，就可以包含HTML标签）， 不鼓励使用纯文本描述。如果你需要修改产生的web站点的索引页面，你应该修改你自己的索引页文件，而不是调整这里的文档。--&gt;</div><div class="line"></div><div class="line">    &lt;description&gt;A maven project to study maven.&lt;/description&gt;</div><div class="line"></div><div class="line">    &lt;!--描述了这个项目构建环境中的前提条件。--&gt;</div><div class="line"></div><div class="line">    &lt;prerequisites&gt;</div><div class="line"></div><div class="line">        &lt;!--构建该项目或使用该插件所需要的Maven的最低版本--&gt;</div><div class="line"></div><div class="line">        &lt;maven/&gt;</div><div class="line"></div><div class="line">    &lt;/prerequisites&gt;</div><div class="line"></div><div class="line">    &lt;!--项目的问题管理系统(Bugzilla, Jira, Scarab,或任何你喜欢的问题管理系统)的名称和URL，本例为 jira--&gt;</div><div class="line"></div><div class="line">    &lt;issueManagement&gt;</div><div class="line"></div><div class="line">        &lt;!--问题管理系统（例如jira）的名字，--&gt;</div><div class="line"></div><div class="line">        &lt;system&gt;jira&lt;/system&gt;</div><div class="line"></div><div class="line">        &lt;!--该项目使用的问题管理系统的URL--&gt;</div><div class="line"></div><div class="line">        &lt;url&gt;http://jira.baidu.com/banseon&lt;/url&gt;</div><div class="line"></div><div class="line">    &lt;/issueManagement&gt;</div><div class="line"></div><div class="line">    &lt;!--项目持续集成信息--&gt;</div><div class="line"></div><div class="line">    &lt;ciManagement&gt;</div><div class="line"></div><div class="line">        &lt;!--持续集成系统的名字，例如continuum--&gt;</div><div class="line"></div><div class="line">        &lt;system/&gt;</div><div class="line"></div><div class="line">        &lt;!--该项目使用的持续集成系统的URL（如果持续集成系统有web接口的话）。--&gt;</div><div class="line"></div><div class="line">        &lt;url/&gt;</div><div class="line"></div><div class="line">        &lt;!--构建完成时，需要通知的开发者/用户的配置项。包括被通知者信息和通知条件（错误，失败，成功，警告）--&gt;</div><div class="line"></div><div class="line">        &lt;notifiers&gt;</div><div class="line"></div><div class="line">            &lt;!--配置一种方式，当构建中断时，以该方式通知用户/开发者--&gt;</div><div class="line"></div><div class="line">            &lt;notifier&gt;</div><div class="line"></div><div class="line">                &lt;!--传送通知的途径--&gt;</div><div class="line"></div><div class="line">                &lt;type/&gt;</div><div class="line"></div><div class="line">                &lt;!--发生错误时是否通知--&gt;</div><div class="line"></div><div class="line">                &lt;sendOnError/&gt;</div><div class="line"></div><div class="line">                &lt;!--构建失败时是否通知--&gt;</div><div class="line"></div><div class="line">                &lt;sendOnFailure/&gt;</div><div class="line"></div><div class="line">                &lt;!--构建成功时是否通知--&gt;</div><div class="line"></div><div class="line">                &lt;sendOnSuccess/&gt;</div><div class="line"></div><div class="line">                &lt;!--发生警告时是否通知--&gt;</div><div class="line"></div><div class="line">                &lt;sendOnWarning/&gt;</div><div class="line"></div><div class="line">                &lt;!--不赞成使用。通知发送到哪里--&gt;</div><div class="line"></div><div class="line">                &lt;address/&gt;</div><div class="line"></div><div class="line">                &lt;!--扩展配置项--&gt;</div><div class="line"></div><div class="line">                &lt;configuration/&gt;</div><div class="line"></div><div class="line">            &lt;/notifier&gt;</div><div class="line"></div><div class="line">        &lt;/notifiers&gt;</div><div class="line"></div><div class="line">    &lt;/ciManagement&gt;</div><div class="line"></div><div class="line">    &lt;!--项目创建年份，4位数字。当产生版权信息时需要使用这个值。--&gt;</div><div class="line"></div><div class="line">    &lt;inceptionYear/&gt;</div><div class="line"></div><div class="line">    &lt;!--项目相关邮件列表信息--&gt;</div><div class="line"></div><div class="line">    &lt;mailingLists&gt;</div><div class="line"></div><div class="line">        &lt;!--该元素描述了项目相关的所有邮件列表。自动产生的网站引用这些信息。--&gt;</div><div class="line"></div><div class="line">        &lt;mailingList&gt;</div><div class="line"></div><div class="line">            &lt;!--邮件的名称--&gt;</div><div class="line"></div><div class="line">            &lt;name&gt;Demo&lt;/name&gt;</div><div class="line"></div><div class="line">            &lt;!--发送邮件的地址或链接，如果是邮件地址，创建文档时，mailto: 链接会被自动创建--&gt;</div><div class="line"></div><div class="line">            &lt;post&gt;banseon@126.com&lt;/post&gt;</div><div class="line"></div><div class="line">            &lt;!--订阅邮件的地址或链接，如果是邮件地址，创建文档时，mailto: 链接会被自动创建--&gt;</div><div class="line"></div><div class="line">            &lt;subscribe&gt;banseon@126.com&lt;/subscribe&gt;</div><div class="line"></div><div class="line">            &lt;!--取消订阅邮件的地址或链接，如果是邮件地址，创建文档时，mailto: 链接会被自动创建--&gt;</div><div class="line"></div><div class="line">            &lt;unsubscribe&gt;banseon@126.com&lt;/unsubscribe&gt;</div><div class="line"></div><div class="line">            &lt;!--你可以浏览邮件信息的URL--&gt;</div><div class="line"></div><div class="line">            &lt;archive&gt;http:/hi.baidu.com/banseon/demo/dev/&lt;/archive&gt;</div><div class="line"></div><div class="line">        &lt;/mailingList&gt;</div><div class="line"></div><div class="line">    &lt;/mailingLists&gt;</div><div class="line"></div><div class="line">    &lt;!--项目开发者列表--&gt;</div><div class="line"></div><div class="line">    &lt;developers&gt;</div><div class="line"></div><div class="line">        &lt;!--某个项目开发者的信息--&gt;</div><div class="line"></div><div class="line">        &lt;developer&gt;</div><div class="line"></div><div class="line">            &lt;!--SCM里项目开发者的唯一标识符--&gt;</div><div class="line"></div><div class="line">            &lt;id&gt;HELLO WORLD&lt;/id&gt;</div><div class="line"></div><div class="line">            &lt;!--项目开发者的全名--&gt;</div><div class="line"></div><div class="line">            &lt;name&gt;banseon&lt;/name&gt;</div><div class="line"></div><div class="line">            &lt;!--项目开发者的email--&gt;</div><div class="line"></div><div class="line">            &lt;email&gt;banseon@126.com&lt;/email&gt;</div><div class="line"></div><div class="line">            &lt;!--项目开发者的主页的URL--&gt;</div><div class="line"></div><div class="line">            &lt;url/&gt;</div><div class="line"></div><div class="line">            &lt;!--项目开发者在项目中扮演的角色，角色元素描述了各种角色--&gt;</div><div class="line"></div><div class="line">            &lt;roles&gt;</div><div class="line"></div><div class="line">                &lt;role&gt;Project Manager&lt;/role&gt;</div><div class="line"></div><div class="line">                &lt;role&gt;Architect&lt;/role&gt;</div><div class="line"></div><div class="line">            &lt;/roles&gt;</div><div class="line"></div><div class="line">            &lt;!--项目开发者所属组织--&gt;</div><div class="line"></div><div class="line">            &lt;organization&gt;demo&lt;/organization&gt;</div><div class="line"></div><div class="line">            &lt;!--项目开发者所属组织的URL--&gt;</div><div class="line"></div><div class="line">            &lt;organizationUrl&gt;http://hi.baidu.com/banseon&lt;/organizationUrl&gt;</div><div class="line"></div><div class="line">            &lt;!--项目开发者属性，如即时消息如何处理等--&gt;</div><div class="line"></div><div class="line">            &lt;properties&gt;</div><div class="line"></div><div class="line">                &lt;dept&gt;No&lt;/dept&gt;</div><div class="line"></div><div class="line">            &lt;/properties&gt;</div><div class="line"></div><div class="line">            &lt;!--项目开发者所在时区， -11到12范围内的整数。--&gt;</div><div class="line"></div><div class="line">            &lt;timezone&gt;-5&lt;/timezone&gt;</div><div class="line"></div><div class="line">        &lt;/developer&gt;</div><div class="line"></div><div class="line">    &lt;/developers&gt;</div><div class="line"></div><div class="line">    &lt;!--项目的其他贡献者列表--&gt;</div><div class="line"></div><div class="line">    &lt;contributors&gt;</div><div class="line"></div><div class="line">        &lt;!--项目的其他贡献者。参见developers/developer元素--&gt;</div><div class="line"></div><div class="line">        &lt;contributor&gt;</div><div class="line"></div><div class="line">            &lt;name/&gt;</div><div class="line">            &lt;email/&gt;</div><div class="line">            &lt;url/&gt;</div><div class="line">            &lt;organization/&gt;</div><div class="line">            &lt;organizationUrl/&gt;</div><div class="line">            &lt;roles/&gt;</div><div class="line">            &lt;timezone/&gt;</div><div class="line">            &lt;properties/&gt;</div><div class="line"></div><div class="line">        &lt;/contributor&gt;</div><div class="line"></div><div class="line">    &lt;/contributors&gt;</div><div class="line"></div><div class="line">    &lt;!--该元素描述了项目所有License列表。 应该只列出该项目的license列表，不要列出依赖项目的 license列表。如果列出多个license，用户可以选择它们中的一个而不是接受所有license。--&gt;</div><div class="line"></div><div class="line">    &lt;licenses&gt;</div><div class="line"></div><div class="line">        &lt;!--描述了项目的license，用于生成项目的web站点的license页面，其他一些报表和validation也会用到该元素。--&gt;</div><div class="line"></div><div class="line">        &lt;license&gt;</div><div class="line"></div><div class="line">            &lt;!--license用于法律上的名称--&gt;</div><div class="line"></div><div class="line">            &lt;name&gt;Apache 2&lt;/name&gt;</div><div class="line"></div><div class="line">            &lt;!--官方的license正文页面的URL--&gt;</div><div class="line"></div><div class="line">            &lt;url&gt;http://www.baidu.com/banseon/LICENSE-2.0.txt&lt;/url&gt;</div><div class="line"></div><div class="line">            &lt;!--项目分发的主要方式：</div><div class="line"></div><div class="line">              repo，可以从Maven库下载</div><div class="line"></div><div class="line">              manual， 用户必须手动下载和安装依赖--&gt;</div><div class="line"></div><div class="line">            &lt;distribution&gt;repo&lt;/distribution&gt;</div><div class="line"></div><div class="line">            &lt;!--关于license的补充信息--&gt;</div><div class="line"></div><div class="line">            &lt;comments&gt;A business-friendly OSS license&lt;/comments&gt;</div><div class="line"></div><div class="line">        &lt;/license&gt;</div><div class="line"></div><div class="line">    &lt;/licenses&gt;</div><div class="line"></div><div class="line">    &lt;!--SCM(Source Control Management)标签允许你配置你的代码库，供Maven web站点和其它插件使用。--&gt;</div><div class="line"></div><div class="line">    &lt;scm&gt;</div><div class="line"></div><div class="line">        &lt;!--SCM的URL,该URL描述了版本库和如何连接到版本库。欲知详情，请看SCMs提供的URL格式和列表。该连接只读。--&gt;</div><div class="line"></div><div class="line">        &lt;connection&gt;</div><div class="line"></div><div class="line">            scm:svn:http://svn.baidu.com/banseon/maven/banseon/banseon-maven2-trunk(dao-trunk)</div><div class="line"></div><div class="line">        &lt;/connection&gt;</div><div class="line"></div><div class="line">        &lt;!--给开发者使用的，类似connection元素。即该连接不仅仅只读--&gt;</div><div class="line"></div><div class="line">        &lt;developerConnection&gt;</div><div class="line"></div><div class="line">            scm:svn:http://svn.baidu.com/banseon/maven/banseon/dao-trunk</div><div class="line"></div><div class="line">        &lt;/developerConnection&gt;</div><div class="line"></div><div class="line">        &lt;!--当前代码的标签，在开发阶段默认为HEAD--&gt;</div><div class="line"></div><div class="line">        &lt;tag/&gt;</div><div class="line"></div><div class="line">        &lt;!--指向项目的可浏览SCM库（例如ViewVC或者Fisheye）的URL。--&gt;</div><div class="line"></div><div class="line">        &lt;url&gt;http://svn.baidu.com/banseon&lt;/url&gt;</div><div class="line"></div><div class="line">    &lt;/scm&gt;</div><div class="line"></div><div class="line">    &lt;!--描述项目所属组织的各种属性。Maven产生的文档用--&gt;</div><div class="line"></div><div class="line">    &lt;organization&gt;</div><div class="line"></div><div class="line">        &lt;!--组织的全名--&gt;</div><div class="line"></div><div class="line">        &lt;name&gt;demo&lt;/name&gt;</div><div class="line"></div><div class="line">        &lt;!--组织主页的URL--&gt;</div><div class="line"></div><div class="line">        &lt;url&gt;http://www.baidu.com/banseon&lt;/url&gt;</div><div class="line"></div><div class="line">    &lt;/organization&gt;</div><div class="line"></div><div class="line">    &lt;!--构建项目需要的信息--&gt;</div><div class="line"></div><div class="line">    &lt;build&gt;</div><div class="line"></div><div class="line">        &lt;!--该元素设置了项目源码目录，当构建项目的时候，构建系统会编译目录里的源码。该路径是相对于pom.xml的相对路径。--&gt;</div><div class="line"></div><div class="line">        &lt;sourceDirectory/&gt;</div><div class="line"></div><div class="line">        &lt;!--该元素设置了项目脚本源码目录，该目录和源码目录不同：绝大多数情况下，该目录下的内容 会被拷贝到输出目录(因为脚本是被解释的，而不是被编译的)。--&gt;</div><div class="line"></div><div class="line">        &lt;scriptSourceDirectory/&gt;</div><div class="line"></div><div class="line">        &lt;!--该元素设置了项目单元测试使用的源码目录，当测试项目的时候，构建系统会编译目录里的源码。该路径是相对于pom.xml的相对路径。--&gt;</div><div class="line"></div><div class="line">        &lt;testSourceDirectory/&gt;</div><div class="line"></div><div class="line">        &lt;!--被编译过的应用程序class文件存放的目录。--&gt;</div><div class="line"></div><div class="line">        &lt;outputDirectory/&gt;</div><div class="line"></div><div class="line">        &lt;!--被编译过的测试class文件存放的目录。--&gt;</div><div class="line"></div><div class="line">        &lt;testOutputDirectory/&gt;</div><div class="line"></div><div class="line">        &lt;!--使用来自该项目的一系列构建扩展--&gt;</div><div class="line"></div><div class="line">        &lt;extensions&gt;</div><div class="line"></div><div class="line">            &lt;!--描述使用到的构建扩展。--&gt;</div><div class="line"></div><div class="line">            &lt;extension&gt;</div><div class="line"></div><div class="line">                &lt;!--构建扩展的groupId--&gt;</div><div class="line"></div><div class="line">                &lt;groupId/&gt;</div><div class="line"></div><div class="line">                &lt;!--构建扩展的artifactId--&gt;</div><div class="line"></div><div class="line">                &lt;artifactId/&gt;</div><div class="line"></div><div class="line">                &lt;!--构建扩展的版本--&gt;</div><div class="line"></div><div class="line">                &lt;version/&gt;</div><div class="line"></div><div class="line">            &lt;/extension&gt;</div><div class="line"></div><div class="line">        &lt;/extensions&gt;</div><div class="line"></div><div class="line">        &lt;!--当项目没有规定目标（Maven2 叫做阶段）时的默认值--&gt;</div><div class="line"></div><div class="line">        &lt;defaultGoal/&gt;</div><div class="line"></div><div class="line">        &lt;!--这个元素描述了项目相关的所有资源路径列表，例如和项目相关的属性文件，这些资源被包含在最终的打包文件里。--&gt;</div><div class="line"></div><div class="line">        &lt;resources&gt;</div><div class="line"></div><div class="line">            &lt;!--这个元素描述了项目相关或测试相关的所有资源路径--&gt;</div><div class="line"></div><div class="line">            &lt;resource&gt;</div><div class="line"></div><div class="line">                &lt;!--描述了资源的目标路径。该路径相对target/classes目录（例如$&#123;project.build.outputDirectory&#125;）。举个例子，如果你想资源在特定的包里(org.apache.maven.messages)，你就必须该元素设置为org/apache/maven/messages。然而，如果你只是想把资源放到源码目录结构里，就不需要该配置。--&gt;</div><div class="line"></div><div class="line">                &lt;targetPath/&gt;</div><div class="line"></div><div class="line">                &lt;!--是否使用参数值代替参数名。参数值取自properties元素或者文件里配置的属性，文件在filters元素里列出。--&gt;</div><div class="line"></div><div class="line">                &lt;filtering/&gt;</div><div class="line"></div><div class="line">                &lt;!--描述存放资源的目录，该路径相对POM路径--&gt;</div><div class="line"></div><div class="line">                &lt;directory/&gt;</div><div class="line"></div><div class="line">                &lt;!--包含的模式列表，例如**/*.xml.--&gt;</div><div class="line"></div><div class="line">                &lt;includes/&gt;</div><div class="line"></div><div class="line">                &lt;!--排除的模式列表，例如**/*.xml--&gt;</div><div class="line"></div><div class="line">                &lt;excludes/&gt;</div><div class="line"></div><div class="line">            &lt;/resource&gt;</div><div class="line"></div><div class="line">        &lt;/resources&gt;</div><div class="line"></div><div class="line">        &lt;!--这个元素描述了单元测试相关的所有资源路径，例如和单元测试相关的属性文件。--&gt;</div><div class="line"></div><div class="line">        &lt;testResources&gt;</div><div class="line"></div><div class="line">            &lt;!--这个元素描述了测试相关的所有资源路径，参见build/resources/resource元素的说明--&gt;</div><div class="line"></div><div class="line">            &lt;testResource&gt;</div><div class="line"></div><div class="line">                &lt;targetPath/&gt;</div><div class="line">                &lt;filtering/&gt;</div><div class="line">                &lt;directory/&gt;</div><div class="line">                &lt;includes/&gt;</div><div class="line">                &lt;excludes/&gt;</div><div class="line"></div><div class="line">            &lt;/testResource&gt;</div><div class="line"></div><div class="line">        &lt;/testResources&gt;</div><div class="line"></div><div class="line">        &lt;!--构建产生的所有文件存放的目录--&gt;</div><div class="line"></div><div class="line">        &lt;directory/&gt;</div><div class="line"></div><div class="line">        &lt;!--产生的构件的文件名，默认值是$&#123;artifactId&#125;-$&#123;version&#125;。--&gt;</div><div class="line"></div><div class="line">        &lt;finalName/&gt;</div><div class="line"></div><div class="line">        &lt;!--当filtering开关打开时，使用到的过滤器属性文件列表--&gt;</div><div class="line"></div><div class="line">        &lt;filters/&gt;</div><div class="line"></div><div class="line">        &lt;!--子项目可以引用的默认插件信息。该插件配置项直到被引用时才会被解析或绑定到生命周期。给定插件的任何本地配置都会覆盖这里的配置--&gt;</div><div class="line"></div><div class="line">        &lt;pluginManagement&gt;</div><div class="line"></div><div class="line">            &lt;!--使用的插件列表 。--&gt;</div><div class="line"></div><div class="line">            &lt;plugins&gt;</div><div class="line"></div><div class="line">                &lt;!--plugin元素包含描述插件所需要的信息。--&gt;</div><div class="line"></div><div class="line">                &lt;plugin&gt;</div><div class="line"></div><div class="line">                    &lt;!--插件在仓库里的group ID--&gt;</div><div class="line"></div><div class="line">                    &lt;groupId/&gt;</div><div class="line"></div><div class="line">                    &lt;!--插件在仓库里的artifact ID--&gt;</div><div class="line"></div><div class="line">                    &lt;artifactId/&gt;</div><div class="line"></div><div class="line">                    &lt;!--被使用的插件的版本（或版本范围）--&gt;</div><div class="line"></div><div class="line">                    &lt;version/&gt;</div><div class="line"></div><div class="line">                    &lt;!--是否从该插件下载Maven扩展（例如打包和类型处理器），由于性能原因，只有在真需要下载时，该元素才被设置成enabled。--&gt;</div><div class="line"></div><div class="line">                    &lt;extensions/&gt;</div><div class="line"></div><div class="line">                    &lt;!--在构建生命周期中执行一组目标的配置。每个目标可能有不同的配置。--&gt;</div><div class="line"></div><div class="line">                    &lt;executions&gt;</div><div class="line"></div><div class="line">                        &lt;!--execution元素包含了插件执行需要的信息--&gt;</div><div class="line"></div><div class="line">                        &lt;execution&gt;</div><div class="line"></div><div class="line">                            &lt;!--执行目标的标识符，用于标识构建过程中的目标，或者匹配继承过程中需要合并的执行目标--&gt;</div><div class="line"></div><div class="line">                            &lt;id/&gt;</div><div class="line"></div><div class="line">                            &lt;!--绑定了目标的构建生命周期阶段，如果省略，目标会被绑定到源数据里配置的默认阶段--&gt;</div><div class="line"></div><div class="line">                            &lt;phase/&gt;</div><div class="line"></div><div class="line">                            &lt;!--配置的执行目标--&gt;</div><div class="line"></div><div class="line">                            &lt;goals/&gt;</div><div class="line"></div><div class="line">                            &lt;!--配置是否被传播到子POM--&gt;</div><div class="line"></div><div class="line">                            &lt;inherited/&gt;</div><div class="line"></div><div class="line">                            &lt;!--作为DOM对象的配置--&gt;</div><div class="line"></div><div class="line">                            &lt;configuration/&gt;</div><div class="line"></div><div class="line">                        &lt;/execution&gt;</div><div class="line"></div><div class="line">                    &lt;/executions&gt;</div><div class="line"></div><div class="line">                    &lt;!--项目引入插件所需要的额外依赖--&gt;</div><div class="line"></div><div class="line">                    &lt;dependencies&gt;</div><div class="line"></div><div class="line">                        &lt;!--参见dependencies/dependency元素--&gt;</div><div class="line"></div><div class="line">                        &lt;dependency&gt;</div><div class="line"></div><div class="line"></div><div class="line">                        &lt;/dependency&gt;</div><div class="line"></div><div class="line">                    &lt;/dependencies&gt;</div><div class="line"></div><div class="line">                    &lt;!--任何配置是否被传播到子项目--&gt;</div><div class="line"></div><div class="line">                    &lt;inherited/&gt;</div><div class="line"></div><div class="line">                    &lt;!--作为DOM对象的配置--&gt;</div><div class="line"></div><div class="line">                    &lt;configuration/&gt;</div><div class="line"></div><div class="line">                &lt;/plugin&gt;</div><div class="line"></div><div class="line">            &lt;/plugins&gt;</div><div class="line"></div><div class="line">        &lt;/pluginManagement&gt;</div><div class="line"></div><div class="line">        &lt;!--使用的插件列表--&gt;</div><div class="line"></div><div class="line">        &lt;plugins&gt;</div><div class="line"></div><div class="line">            &lt;!--参见build/pluginManagement/plugins/plugin元素--&gt;</div><div class="line"></div><div class="line">            &lt;plugin&gt;</div><div class="line"></div><div class="line">                &lt;groupId/&gt;</div><div class="line">                &lt;artifactId/&gt;</div><div class="line">                &lt;version/&gt;</div><div class="line">                &lt;extensions/&gt;</div><div class="line"></div><div class="line">                &lt;executions&gt;</div><div class="line"></div><div class="line">                    &lt;execution&gt;</div><div class="line"></div><div class="line">                        &lt;id/&gt;</div><div class="line">                        &lt;phase/&gt;</div><div class="line">                        &lt;goals/&gt;</div><div class="line">                        &lt;inherited/&gt;</div><div class="line">                        &lt;configuration/&gt;</div><div class="line"></div><div class="line">                    &lt;/execution&gt;</div><div class="line"></div><div class="line">                &lt;/executions&gt;</div><div class="line"></div><div class="line">                &lt;dependencies&gt;</div><div class="line"></div><div class="line">                    &lt;!--参见dependencies/dependency元素--&gt;</div><div class="line"></div><div class="line">                    &lt;dependency&gt;</div><div class="line"></div><div class="line"></div><div class="line">                    &lt;/dependency&gt;</div><div class="line"></div><div class="line">                &lt;/dependencies&gt;</div><div class="line"></div><div class="line">                &lt;goals/&gt;</div><div class="line">                &lt;inherited/&gt;</div><div class="line">                &lt;configuration/&gt;</div><div class="line"></div><div class="line">            &lt;/plugin&gt;</div><div class="line"></div><div class="line">        &lt;/plugins&gt;</div><div class="line"></div><div class="line">    &lt;/build&gt;</div><div class="line"></div><div class="line">    &lt;!--在列的项目构建profile，如果被激活，会修改构建处理--&gt;</div><div class="line"></div><div class="line">    &lt;profiles&gt;</div><div class="line"></div><div class="line">        &lt;!--根据环境参数或命令行参数激活某个构建处理--&gt;</div><div class="line"></div><div class="line">        &lt;profile&gt;</div><div class="line"></div><div class="line">            &lt;!--构建配置的唯一标识符。即用于命令行激活，也用于在继承时合并具有相同标识符的profile。--&gt;</div><div class="line"></div><div class="line">            &lt;id/&gt;</div><div class="line">            &lt;!--自动触发profile的条件逻辑。Activation是profile的开启钥匙。profile的力量来自于它</div><div class="line"></div><div class="line">            能够在某些特定的环境中自动使用某些特定的值；这些环境通过activation元素指定。activation元素并不是激活profile的唯一方式。--&gt;</div><div class="line"></div><div class="line">            &lt;activation&gt;</div><div class="line"></div><div class="line">                &lt;!--profile默认是否激活的标志--&gt;</div><div class="line"></div><div class="line">                &lt;activeByDefault/&gt;</div><div class="line"></div><div class="line">                &lt;!--当匹配的jdk被检测到，profile被激活。例如，1.4激活JDK1.4，1.4.0_2，而!1.4激活所有版本不是以1.4开头的JDK。--&gt;</div><div class="line"></div><div class="line">                &lt;jdk/&gt;</div><div class="line"></div><div class="line">                &lt;!--当匹配的操作系统属性被检测到，profile被激活。os元素可以定义一些操作系统相关的属性。--&gt;</div><div class="line"></div><div class="line">                &lt;os&gt;</div><div class="line"></div><div class="line">                    &lt;!--激活profile的操作系统的名字--&gt;</div><div class="line"></div><div class="line">                    &lt;name&gt;Windows XP&lt;/name&gt;</div><div class="line"></div><div class="line">                    &lt;!--激活profile的操作系统所属家族(如 &apos;windows&apos;)--&gt;</div><div class="line"></div><div class="line">                    &lt;family&gt;Windows&lt;/family&gt;</div><div class="line"></div><div class="line">                    &lt;!--激活profile的操作系统体系结构 --&gt;</div><div class="line"></div><div class="line">                    &lt;arch&gt;x86&lt;/arch&gt;</div><div class="line"></div><div class="line">                    &lt;!--激活profile的操作系统版本--&gt;</div><div class="line"></div><div class="line">                    &lt;version&gt;5.1.2600&lt;/version&gt;</div><div class="line"></div><div class="line">                &lt;/os&gt;</div><div class="line"></div><div class="line">                &lt;!--如果Maven检测到某一个属性（其值可以在POM中通过$&#123;名称&#125;引用），其拥有对应的名称和值，Profile就会被激活。如果值</div><div class="line"></div><div class="line">              字段是空的，那么存在属性名称字段就会激活profile，否则按区分大小写方式匹配属性值字段--&gt;</div><div class="line"></div><div class="line">                &lt;property&gt;</div><div class="line"></div><div class="line">                    &lt;!--激活profile的属性的名称--&gt;</div><div class="line"></div><div class="line">                    &lt;name&gt;mavenVersion&lt;/name&gt;</div><div class="line"></div><div class="line">                    &lt;!--激活profile的属性的值--&gt;</div><div class="line"></div><div class="line">                    &lt;value&gt;2.0.3&lt;/value&gt;</div><div class="line"></div><div class="line">                &lt;/property&gt;</div><div class="line"></div><div class="line">                &lt;!--提供一个文件名，通过检测该文件的存在或不存在来激活profile。missing检查文件是否存在，如果不存在则激活</div><div class="line"></div><div class="line">               profile。另一方面，exists则会检查文件是否存在，如果存在则激活profile。--&gt;</div><div class="line"></div><div class="line">                &lt;file&gt;</div><div class="line"></div><div class="line">                    &lt;!--如果指定的文件存在，则激活profile。--&gt;</div><div class="line"></div><div class="line">                    &lt;exists&gt;/usr/local/hudson/hudson-home/jobs/maven-guide-zh-to-production/workspace/&lt;/exists&gt;</div><div class="line"></div><div class="line">                    &lt;!--如果指定的文件不存在，则激活profile。--&gt;</div><div class="line"></div><div class="line">                    &lt;missing&gt;/usr/local/hudson/hudson-home/jobs/maven-guide-zh-to-production/workspace/&lt;/missing&gt;</div><div class="line"></div><div class="line">                &lt;/file&gt;</div><div class="line"></div><div class="line">            &lt;/activation&gt;</div><div class="line"></div><div class="line">            &lt;!--构建项目所需要的信息。参见build元素--&gt;</div><div class="line"></div><div class="line">            &lt;build&gt;</div><div class="line"></div><div class="line">                &lt;defaultGoal/&gt;</div><div class="line"></div><div class="line">                &lt;resources&gt;</div><div class="line"></div><div class="line">                    &lt;resource&gt;</div><div class="line"></div><div class="line">                        &lt;targetPath/&gt;</div><div class="line">                        &lt;filtering/&gt;</div><div class="line">                        &lt;directory/&gt;</div><div class="line">                        &lt;includes/&gt;</div><div class="line">                        &lt;excludes/&gt;</div><div class="line"></div><div class="line">                    &lt;/resource&gt;</div><div class="line"></div><div class="line">                &lt;/resources&gt;</div><div class="line"></div><div class="line">                &lt;testResources&gt;</div><div class="line"></div><div class="line">                    &lt;testResource&gt;</div><div class="line"></div><div class="line">                        &lt;targetPath/&gt;</div><div class="line">                        &lt;filtering/&gt;</div><div class="line">                        &lt;directory/&gt;</div><div class="line">                        &lt;includes/&gt;</div><div class="line">                        &lt;excludes/&gt;</div><div class="line"></div><div class="line">                    &lt;/testResource&gt;</div><div class="line"></div><div class="line">                &lt;/testResources&gt;</div><div class="line"></div><div class="line">                &lt;directory/&gt;</div><div class="line">                &lt;finalName/&gt;</div><div class="line">                &lt;filters/&gt;</div><div class="line"></div><div class="line">                &lt;pluginManagement&gt;</div><div class="line"></div><div class="line">                    &lt;plugins&gt;</div><div class="line"></div><div class="line">                        &lt;!--参见build/pluginManagement/plugins/plugin元素--&gt;</div><div class="line"></div><div class="line">                        &lt;plugin&gt;</div><div class="line"></div><div class="line">                            &lt;groupId/&gt;</div><div class="line">                            &lt;artifactId/&gt;</div><div class="line">                            &lt;version/&gt;</div><div class="line">                            &lt;extensions/&gt;</div><div class="line"></div><div class="line">                            &lt;executions&gt;</div><div class="line"></div><div class="line">                                &lt;execution&gt;</div><div class="line"></div><div class="line">                                    &lt;id/&gt;</div><div class="line">                                    &lt;phase/&gt;</div><div class="line">                                    &lt;goals/&gt;</div><div class="line">                                    &lt;inherited/&gt;</div><div class="line">                                    &lt;configuration/&gt;</div><div class="line"></div><div class="line">                                &lt;/execution&gt;</div><div class="line"></div><div class="line">                            &lt;/executions&gt;</div><div class="line"></div><div class="line">                            &lt;dependencies&gt;</div><div class="line"></div><div class="line">                                &lt;!--参见dependencies/dependency元素--&gt;</div><div class="line"></div><div class="line">                                &lt;dependency&gt;</div><div class="line"></div><div class="line"></div><div class="line">                                &lt;/dependency&gt;</div><div class="line"></div><div class="line">                            &lt;/dependencies&gt;</div><div class="line"></div><div class="line">                            &lt;goals/&gt;</div><div class="line">                            &lt;inherited/&gt;</div><div class="line">                            &lt;configuration/&gt;</div><div class="line"></div><div class="line">                        &lt;/plugin&gt;</div><div class="line"></div><div class="line">                    &lt;/plugins&gt;</div><div class="line"></div><div class="line">                &lt;/pluginManagement&gt;</div><div class="line"></div><div class="line">                &lt;plugins&gt;</div><div class="line"></div><div class="line">                    &lt;!--参见build/pluginManagement/plugins/plugin元素--&gt;</div><div class="line"></div><div class="line">                    &lt;plugin&gt;</div><div class="line"></div><div class="line">                        &lt;groupId/&gt;</div><div class="line">                        &lt;artifactId/&gt;</div><div class="line">                        &lt;version/&gt;</div><div class="line">                        &lt;extensions/&gt;</div><div class="line"></div><div class="line">                        &lt;executions&gt;</div><div class="line"></div><div class="line">                            &lt;execution&gt;</div><div class="line"></div><div class="line">                                &lt;id/&gt;</div><div class="line">                                &lt;phase/&gt;</div><div class="line">                                &lt;goals/&gt;</div><div class="line">                                &lt;inherited/&gt;</div><div class="line">                                &lt;configuration/&gt;</div><div class="line"></div><div class="line">                            &lt;/execution&gt;</div><div class="line"></div><div class="line">                        &lt;/executions&gt;</div><div class="line"></div><div class="line">                        &lt;dependencies&gt;</div><div class="line"></div><div class="line">                            &lt;!--参见dependencies/dependency元素--&gt;</div><div class="line"></div><div class="line">                            &lt;dependency&gt;</div><div class="line"></div><div class="line"></div><div class="line">                            &lt;/dependency&gt;</div><div class="line"></div><div class="line">                        &lt;/dependencies&gt;</div><div class="line"></div><div class="line">                        &lt;goals/&gt;</div><div class="line">                        &lt;inherited/&gt;</div><div class="line">                        &lt;configuration/&gt;</div><div class="line"></div><div class="line">                    &lt;/plugin&gt;</div><div class="line"></div><div class="line">                &lt;/plugins&gt;</div><div class="line"></div><div class="line">            &lt;/build&gt;</div><div class="line"></div><div class="line">            &lt;!--模块（有时称作子项目） 被构建成项目的一部分。列出的每个模块元素是指向该模块的目录的相对路径--&gt;</div><div class="line"></div><div class="line">            &lt;modules/&gt;</div><div class="line"></div><div class="line">            &lt;!--发现依赖和扩展的远程仓库列表。--&gt;</div><div class="line"></div><div class="line">            &lt;repositories&gt;</div><div class="line"></div><div class="line">                &lt;!--参见repositories/repository元素--&gt;</div><div class="line"></div><div class="line">                &lt;repository&gt;</div><div class="line"></div><div class="line">                    &lt;releases&gt;</div><div class="line"></div><div class="line">                        &lt;enabled/&gt;</div><div class="line">                        &lt;updatePolicy/&gt;</div><div class="line">                        &lt;checksumPolicy/&gt;</div><div class="line"></div><div class="line">                    &lt;/releases&gt;</div><div class="line"></div><div class="line">                    &lt;snapshots&gt;</div><div class="line"></div><div class="line">                        &lt;enabled/&gt;</div><div class="line">                        &lt;updatePolicy/&gt;</div><div class="line">                        &lt;checksumPolicy/&gt;</div><div class="line"></div><div class="line">                    &lt;/snapshots&gt;</div><div class="line"></div><div class="line">                    &lt;id/&gt;</div><div class="line">                    &lt;name/&gt;</div><div class="line">                    &lt;url/&gt;</div><div class="line">                    &lt;layout/&gt;</div><div class="line"></div><div class="line">                &lt;/repository&gt;</div><div class="line"></div><div class="line">            &lt;/repositories&gt;</div><div class="line"></div><div class="line">            &lt;!--发现插件的远程仓库列表，这些插件用于构建和报表--&gt;</div><div class="line"></div><div class="line">            &lt;pluginRepositories&gt;</div><div class="line"></div><div class="line">                &lt;!--包含需要连接到远程插件仓库的信息.参见repositories/repository元素--&gt;</div><div class="line"></div><div class="line">                &lt;pluginRepository&gt;</div><div class="line"></div><div class="line">                    &lt;releases&gt;</div><div class="line"></div><div class="line">                        &lt;enabled/&gt;</div><div class="line">                        &lt;updatePolicy/&gt;</div><div class="line">                        &lt;checksumPolicy/&gt;</div><div class="line"></div><div class="line">                    &lt;/releases&gt;</div><div class="line"></div><div class="line">                    &lt;snapshots&gt;</div><div class="line"></div><div class="line">                        &lt;enabled/&gt;</div><div class="line">                        &lt;updatePolicy/&gt;</div><div class="line">                        &lt;checksumPolicy/&gt;</div><div class="line"></div><div class="line">                    &lt;/snapshots&gt;</div><div class="line"></div><div class="line">                    &lt;id/&gt;</div><div class="line">                    &lt;name/&gt;</div><div class="line">                    &lt;url/&gt;</div><div class="line">                    &lt;layout/&gt;</div><div class="line"></div><div class="line">                &lt;/pluginRepository&gt;</div><div class="line"></div><div class="line">            &lt;/pluginRepositories&gt;</div><div class="line"></div><div class="line">            &lt;!--该元素描述了项目相关的所有依赖。 这些依赖组成了项目构建过程中的一个个环节。它们自动从项目定义的仓库中下载。要获取更多信息，请看项目依赖机制。--&gt;</div><div class="line"></div><div class="line">            &lt;dependencies&gt;</div><div class="line"></div><div class="line">                &lt;!--参见dependencies/dependency元素--&gt;</div><div class="line"></div><div class="line">                &lt;dependency&gt;</div><div class="line"></div><div class="line"></div><div class="line">                &lt;/dependency&gt;</div><div class="line"></div><div class="line">            &lt;/dependencies&gt;</div><div class="line"></div><div class="line">            &lt;!--不赞成使用. 现在Maven忽略该元素.--&gt;</div><div class="line"></div><div class="line">            &lt;reports/&gt;</div><div class="line">            &lt;!--该元素包括使用报表插件产生报表的规范。当用户执行“mvn site”，这些报表就会运行。 在页面导航栏能看到所有报表的链接。参见reporting元素--&gt;</div><div class="line"></div><div class="line">            &lt;reporting&gt;</div><div class="line"></div><div class="line"></div><div class="line">            &lt;/reporting&gt;</div><div class="line"></div><div class="line">            &lt;!--参见dependencyManagement元素--&gt;</div><div class="line"></div><div class="line">            &lt;dependencyManagement&gt;</div><div class="line"></div><div class="line">                &lt;dependencies&gt;</div><div class="line"></div><div class="line">                    &lt;!--参见dependencies/dependency元素--&gt;</div><div class="line"></div><div class="line">                    &lt;dependency&gt;</div><div class="line"></div><div class="line"></div><div class="line">                    &lt;/dependency&gt;</div><div class="line"></div><div class="line">                &lt;/dependencies&gt;</div><div class="line"></div><div class="line">            &lt;/dependencyManagement&gt;</div><div class="line"></div><div class="line">            &lt;!--参见distributionManagement元素--&gt;</div><div class="line"></div><div class="line">            &lt;distributionManagement&gt;</div><div class="line"></div><div class="line"></div><div class="line">            &lt;/distributionManagement&gt;</div><div class="line"></div><div class="line">            &lt;!--参见properties元素--&gt;</div><div class="line"></div><div class="line">            &lt;properties/&gt;</div><div class="line"></div><div class="line">        &lt;/profile&gt;</div><div class="line"></div><div class="line">    &lt;/profiles&gt;</div><div class="line"></div><div class="line">    &lt;!--模块（有时称作子项目） 被构建成项目的一部分。列出的每个模块元素是指向该模块的目录的相对路径--&gt;</div><div class="line"></div><div class="line">    &lt;modules/&gt;</div><div class="line"></div><div class="line">    &lt;!--发现依赖和扩展的远程仓库列表。--&gt;</div><div class="line"></div><div class="line">    &lt;repositories&gt;</div><div class="line"></div><div class="line">        &lt;!--包含需要连接到远程仓库的信息--&gt;</div><div class="line"></div><div class="line">        &lt;repository&gt;</div><div class="line"></div><div class="line">            &lt;!--如何处理远程仓库里发布版本的下载--&gt;</div><div class="line"></div><div class="line">            &lt;releases&gt;</div><div class="line"></div><div class="line">                &lt;!--true或者false表示该仓库是否为下载某种类型构件（发布版，快照版）开启。 --&gt;</div><div class="line"></div><div class="line">                &lt;enabled/&gt;</div><div class="line"></div><div class="line">                &lt;!--该元素指定更新发生的频率。Maven会比较本地POM和远程POM的时间戳。这里的选项是：always（一直），daily（默认，每日），interval：X（这里X是以分钟为单位的时间间隔），或者never（从不）。--&gt;</div><div class="line"></div><div class="line">                &lt;updatePolicy/&gt;</div><div class="line"></div><div class="line">                &lt;!--当Maven验证构件校验文件失败时该怎么做：ignore（忽略），fail（失败），或者warn（警告）。--&gt;</div><div class="line"></div><div class="line">                &lt;checksumPolicy/&gt;</div><div class="line"></div><div class="line">            &lt;/releases&gt;</div><div class="line"></div><div class="line">            &lt;!--如何处理远程仓库里快照版本的下载。有了releases和snapshots这两组配置，POM就可以在每个单独的仓库中，为每种类型的构件采取不同的策略。例如，可能有人会决定只为开发目的开启对快照版本下载的支持。参见repositories/repository/releases元素--&gt;</div><div class="line"></div><div class="line">            &lt;snapshots&gt;</div><div class="line"></div><div class="line">                &lt;enabled/&gt;</div><div class="line">                &lt;updatePolicy/&gt;</div><div class="line">                &lt;checksumPolicy/&gt;</div><div class="line"></div><div class="line">            &lt;/snapshots&gt;</div><div class="line"></div><div class="line">            &lt;!--远程仓库唯一标识符。可以用来匹配在settings.xml文件里配置的远程仓库--&gt;</div><div class="line"></div><div class="line">            &lt;id&gt;banseon-repository-proxy&lt;/id&gt;</div><div class="line"></div><div class="line">            &lt;!--远程仓库名称--&gt;</div><div class="line"></div><div class="line">            &lt;name&gt;banseon-repository-proxy&lt;/name&gt;</div><div class="line"></div><div class="line">            &lt;!--远程仓库URL，按protocol://hostname/path形式--&gt;</div><div class="line"></div><div class="line">            &lt;url&gt;http://192.168.1.169:9999/repository/&lt;/url&gt;</div><div class="line"></div><div class="line">            &lt;!--用于定位和排序构件的仓库布局类型-可以是default（默认）或者legacy（遗留）。Maven 2为其仓库提供了一个默认的布局；然而，Maven 1.x有一种不同的布局。我们可以使用该元素指定布局是default（默认）还是legacy（遗留）。--&gt;</div><div class="line"></div><div class="line">            &lt;layout&gt;default&lt;/layout&gt;</div><div class="line"></div><div class="line">        &lt;/repository&gt;</div><div class="line"></div><div class="line">    &lt;/repositories&gt;</div><div class="line"></div><div class="line">    &lt;!--发现插件的远程仓库列表，这些插件用于构建和报表--&gt;</div><div class="line"></div><div class="line">    &lt;pluginRepositories&gt;</div><div class="line"></div><div class="line">        &lt;!--包含需要连接到远程插件仓库的信息.参见repositories/repository元素--&gt;</div><div class="line"></div><div class="line">        &lt;pluginRepository&gt;</div><div class="line"></div><div class="line"></div><div class="line">        &lt;/pluginRepository&gt;</div><div class="line"></div><div class="line">    &lt;/pluginRepositories&gt;</div><div class="line"></div><div class="line"></div><div class="line">    &lt;!--该元素描述了项目相关的所有依赖。 这些依赖组成了项目构建过程中的一个个环节。它们自动从项目定义的仓库中下载。要获取更多信息，请看项目依赖机制。--&gt;</div><div class="line"></div><div class="line">    &lt;dependencies&gt;</div><div class="line"></div><div class="line">        &lt;dependency&gt;</div><div class="line"></div><div class="line">            &lt;!--依赖的group ID--&gt;</div><div class="line"></div><div class="line">            &lt;groupId&gt;org.apache.maven&lt;/groupId&gt;</div><div class="line"></div><div class="line">            &lt;!--依赖的artifact ID--&gt;</div><div class="line"></div><div class="line">            &lt;artifactId&gt;maven-artifact&lt;/artifactId&gt;</div><div class="line"></div><div class="line">            &lt;!--依赖的版本号。 在Maven 2里, 也可以配置成版本号的范围。--&gt;</div><div class="line"></div><div class="line">            &lt;version&gt;3.8.1&lt;/version&gt;</div><div class="line"></div><div class="line">            &lt;!--依赖类型，默认类型是jar。它通常表示依赖的文件的扩展名，但也有例外。一个类型可以被映射成另外一个扩展名或分类器。类型经常和使用的打包方式对应，尽管这也有例外。一些类型的例子：jar，war，ejb-client和test-jar。如果设置extensions为 true，就可以在plugin里定义新的类型。所以前面的类型的例子不完整。--&gt;</div><div class="line"></div><div class="line">            &lt;type&gt;jar&lt;/type&gt;</div><div class="line"></div><div class="line">            &lt;!--依赖的分类器。分类器可以区分属于同一个POM，但不同构建方式的构件。分类器名被附加到文件名的版本号后面。例如，如果你想要构建两个单独的构件成JAR，一个使用Java 1.4编译器，另一个使用Java 6编译器，你就可以使用分类器来生成两个单独的JAR构件。--&gt;</div><div class="line"></div><div class="line">            &lt;classifier&gt;&lt;/classifier&gt;</div><div class="line"></div><div class="line">            &lt;!--依赖范围。在项目发布过程中，帮助决定哪些构件被包括进来。欲知详情请参考依赖机制。</div><div class="line"></div><div class="line">                 - compile ：默认范围，用于编译</div><div class="line"></div><div class="line">                 - provided：类似于编译，但支持你期待jdk或者容器提供，类似于classpath</div><div class="line"></div><div class="line">                - runtime: 在执行时需要使用</div><div class="line"></div><div class="line">                 - test:    用于test任务时使用</div><div class="line"></div><div class="line">                 - system: 需要外在提供相应的元素。通过systemPath来取得</div><div class="line"></div><div class="line">                - systemPath: 仅用于范围为system。提供相应的路径</div><div class="line"></div><div class="line">                 - optional:   当项目自身被依赖时，标注依赖是否传递。用于连续依赖时使用--&gt;</div><div class="line"></div><div class="line">            &lt;scope&gt;test&lt;/scope&gt;</div><div class="line"></div><div class="line">            &lt;!--仅供system范围使用。注意，不鼓励使用这个元素，并且在新的版本中该元素可能被覆盖掉。该元素为依赖规定了文件系统上的路径。需要绝对路径而不是相对路径。推荐使用属性匹配绝对路径，例如$&#123;java.home&#125;。--&gt;</div><div class="line"></div><div class="line">            &lt;systemPath&gt;&lt;/systemPath&gt;</div><div class="line"></div><div class="line">            &lt;!--当计算传递依赖时， 从依赖构件列表里，列出被排除的依赖构件集。即告诉maven你只依赖指定的项目，不依赖项目的依赖。此元素主要用于解决版本冲突问题--&gt;</div><div class="line"></div><div class="line">            &lt;exclusions&gt;</div><div class="line"></div><div class="line">                &lt;exclusion&gt;</div><div class="line"></div><div class="line">                    &lt;artifactId&gt;spring-core&lt;/artifactId&gt;</div><div class="line"></div><div class="line">                    &lt;groupId&gt;org.springframework&lt;/groupId&gt;</div><div class="line"></div><div class="line">                &lt;/exclusion&gt;</div><div class="line"></div><div class="line">            &lt;/exclusions&gt;</div><div class="line"></div><div class="line">            &lt;!--可选依赖，如果你在项目B中把C依赖声明为可选，你就需要在依赖于B的项目（例如项目A）中显式的引用对C的依赖。可选依赖阻断依赖的传递性。--&gt;</div><div class="line"></div><div class="line">            &lt;optional&gt;true&lt;/optional&gt;</div><div class="line"></div><div class="line">        &lt;/dependency&gt;</div><div class="line"></div><div class="line">    &lt;/dependencies&gt;</div><div class="line"></div><div class="line">    &lt;!--不赞成使用. 现在Maven忽略该元素.--&gt;</div><div class="line"></div><div class="line">    &lt;reports&gt;&lt;/reports&gt;</div><div class="line"></div><div class="line">    &lt;!--该元素描述使用报表插件产生报表的规范。当用户执行“mvn site”，这些报表就会运行。 在页面导航栏能看到所有报表的链接。--&gt;</div><div class="line"></div><div class="line">    &lt;reporting&gt;</div><div class="line"></div><div class="line">        &lt;!--true，则，网站不包括默认的报表。这包括“项目信息”菜单中的报表。--&gt;</div><div class="line"></div><div class="line">        &lt;excludeDefaults/&gt;</div><div class="line"></div><div class="line">        &lt;!--所有产生的报表存放到哪里。默认值是$&#123;project.build.directory&#125;/site。--&gt;</div><div class="line"></div><div class="line">        &lt;outputDirectory/&gt;</div><div class="line"></div><div class="line">        &lt;!--使用的报表插件和他们的配置。--&gt;</div><div class="line"></div><div class="line">        &lt;plugins&gt;</div><div class="line"></div><div class="line">            &lt;!--plugin元素包含描述报表插件需要的信息--&gt;</div><div class="line"></div><div class="line">            &lt;plugin&gt;</div><div class="line"></div><div class="line">                &lt;!--报表插件在仓库里的group ID--&gt;</div><div class="line"></div><div class="line">                &lt;groupId/&gt;</div><div class="line"></div><div class="line">                &lt;!--报表插件在仓库里的artifact ID--&gt;</div><div class="line"></div><div class="line">                &lt;artifactId/&gt;</div><div class="line"></div><div class="line">                &lt;!--被使用的报表插件的版本（或版本范围）--&gt;</div><div class="line"></div><div class="line">                &lt;version/&gt;</div><div class="line"></div><div class="line">                &lt;!--任何配置是否被传播到子项目--&gt;</div><div class="line"></div><div class="line">                &lt;inherited/&gt;</div><div class="line"></div><div class="line">                &lt;!--报表插件的配置--&gt;</div><div class="line"></div><div class="line">                &lt;configuration/&gt;</div><div class="line"></div><div class="line">                &lt;!--一组报表的多重规范，每个规范可能有不同的配置。一个规范（报表集）对应一个执行目标 。例如，有1，2，3，4，5，6，7，8，9个报表。1，2，5构成A报表集，对应一个执行目标。2，5，8构成B报表集，对应另一个执行目标--&gt;</div><div class="line"></div><div class="line">                &lt;reportSets&gt;</div><div class="line"></div><div class="line">                    &lt;!--表示报表的一个集合，以及产生该集合的配置--&gt;</div><div class="line"></div><div class="line">                    &lt;reportSet&gt;</div><div class="line"></div><div class="line">                        &lt;!--报表集合的唯一标识符，POM继承时用到--&gt;</div><div class="line"></div><div class="line">                        &lt;id/&gt;</div><div class="line"></div><div class="line">                        &lt;!--产生报表集合时，被使用的报表的配置--&gt;</div><div class="line"></div><div class="line">                        &lt;configuration/&gt;</div><div class="line"></div><div class="line">                        &lt;!--配置是否被继承到子POMs--&gt;</div><div class="line"></div><div class="line">                        &lt;inherited/&gt;</div><div class="line"></div><div class="line">                        &lt;!--这个集合里使用到哪些报表--&gt;</div><div class="line"></div><div class="line">                        &lt;reports/&gt;</div><div class="line"></div><div class="line">                    &lt;/reportSet&gt;</div><div class="line"></div><div class="line">                &lt;/reportSets&gt;</div><div class="line"></div><div class="line">            &lt;/plugin&gt;</div><div class="line"></div><div class="line">        &lt;/plugins&gt;</div><div class="line"></div><div class="line">    &lt;/reporting&gt;</div><div class="line"></div><div class="line">    &lt;!--继承自该项目的所有子项目的默认依赖信息。这部分的依赖信息不会被立即解析,而是当子项目声明一个依赖（必须描述group ID和artifact ID信息），如果group ID和artifact ID以外的一些信息没有描述，则通过group ID和artifact ID匹配到这里的依赖，并使用这里的依赖信息。--&gt;</div><div class="line"></div><div class="line">    &lt;dependencyManagement&gt;</div><div class="line"></div><div class="line">        &lt;dependencies&gt;</div><div class="line"></div><div class="line">            &lt;!--参见dependencies/dependency元素--&gt;</div><div class="line"></div><div class="line">            &lt;dependency&gt;</div><div class="line"></div><div class="line"></div><div class="line">            &lt;/dependency&gt;</div><div class="line"></div><div class="line">        &lt;/dependencies&gt;</div><div class="line"></div><div class="line">    &lt;/dependencyManagement&gt;</div><div class="line"></div><div class="line">    &lt;!--项目分发信息，在执行mvn deploy后表示要发布的位置。有了这些信息就可以把网站部署到远程服务器或者把构件部署到远程仓库。--&gt;</div><div class="line"></div><div class="line">    &lt;distributionManagement&gt;</div><div class="line"></div><div class="line">        &lt;!--部署项目产生的构件到远程仓库需要的信息--&gt;</div><div class="line"></div><div class="line">        &lt;repository&gt;</div><div class="line"></div><div class="line">            &lt;!--是分配给快照一个唯一的版本号（由时间戳和构建流水号）？还是每次都使用相同的版本号？参见repositories/repository元素--&gt;</div><div class="line"></div><div class="line">            &lt;uniqueVersion/&gt;</div><div class="line"></div><div class="line">            &lt;id&gt;banseon-maven2&lt;/id&gt;</div><div class="line"></div><div class="line">            &lt;name&gt;banseon maven2&lt;/name&gt;</div><div class="line"></div><div class="line">            &lt;url&gt;file://$&#123;basedir&#125;/target/deploy&lt;/url&gt;</div><div class="line"></div><div class="line">            &lt;layout/&gt;</div><div class="line"></div><div class="line">        &lt;/repository&gt;</div><div class="line"></div><div class="line">        &lt;!--构件的快照部署到哪里？如果没有配置该元素，默认部署到repository元素配置的仓库，参见distributionManagement/repository元素--&gt;</div><div class="line"></div><div class="line">        &lt;snapshotRepository&gt;</div><div class="line"></div><div class="line">            &lt;uniqueVersion/&gt;</div><div class="line"></div><div class="line">            &lt;id&gt;banseon-maven2&lt;/id&gt;</div><div class="line"></div><div class="line">            &lt;name&gt;Banseon-maven2 Snapshot Repository&lt;/name&gt;</div><div class="line"></div><div class="line">            &lt;url&gt;scp://svn.baidu.com/banseon:/usr/local/maven-snapshot&lt;/url&gt;</div><div class="line"></div><div class="line">            &lt;layout/&gt;</div><div class="line"></div><div class="line">        &lt;/snapshotRepository&gt;</div><div class="line"></div><div class="line">        &lt;!--部署项目的网站需要的信息--&gt;</div><div class="line"></div><div class="line">        &lt;site&gt;</div><div class="line"></div><div class="line">            &lt;!--部署位置的唯一标识符，用来匹配站点和settings.xml文件里的配置--&gt;</div><div class="line"></div><div class="line">            &lt;id&gt;banseon-site&lt;/id&gt;</div><div class="line"></div><div class="line">            &lt;!--部署位置的名称--&gt;</div><div class="line"></div><div class="line">            &lt;name&gt;business api website&lt;/name&gt;</div><div class="line"></div><div class="line">            &lt;!--部署位置的URL，按protocol://hostname/path形式--&gt;</div><div class="line"></div><div class="line">            &lt;url&gt;</div><div class="line"></div><div class="line">                scp://svn.baidu.com/banseon:/var/www/localhost/banseon-web</div><div class="line"></div><div class="line">            &lt;/url&gt;</div><div class="line"></div><div class="line">        &lt;/site&gt;</div><div class="line"></div><div class="line">        &lt;!--项目下载页面的URL。如果没有该元素，用户应该参考主页。使用该元素的原因是：帮助定位那些不在仓库里的构件（由于license限制）。--&gt;</div><div class="line"></div><div class="line">        &lt;downloadUrl/&gt;</div><div class="line"></div><div class="line">        &lt;!--如果构件有了新的group ID和artifact ID（构件移到了新的位置），这里列出构件的重定位信息。--&gt;</div><div class="line"></div><div class="line">        &lt;relocation&gt;</div><div class="line"></div><div class="line">            &lt;!--构件新的group ID--&gt;</div><div class="line"></div><div class="line">            &lt;groupId/&gt;</div><div class="line"></div><div class="line">            &lt;!--构件新的artifact ID--&gt;</div><div class="line"></div><div class="line">            &lt;artifactId/&gt;</div><div class="line"></div><div class="line">            &lt;!--构件新的版本号--&gt;</div><div class="line"></div><div class="line">            &lt;version/&gt;</div><div class="line"></div><div class="line">            &lt;!--显示给用户的，关于移动的额外信息，例如原因。--&gt;</div><div class="line"></div><div class="line">            &lt;message/&gt;</div><div class="line"></div><div class="line">        &lt;/relocation&gt;</div><div class="line"></div><div class="line">        &lt;!--给出该构件在远程仓库的状态。不得在本地项目中设置该元素，因为这是工具自动更新的。有效的值有：none（默认），converted（仓库管理员从Maven 1 POM转换过来），partner（直接从伙伴Maven 2仓库同步过来），deployed（从Maven 2实例部署），verified（被核实时正确的和最终的）。--&gt;</div><div class="line"></div><div class="line">        &lt;status/&gt;</div><div class="line"></div><div class="line">    &lt;/distributionManagement&gt;</div><div class="line"></div><div class="line">    &lt;!--以值替代名称，Properties可以在整个POM中使用，也可以作为触发条件（见settings.xml配置文件里activation元素的说明）。格式是&lt;name&gt;value&lt;/name&gt;。--&gt;</div><div class="line"></div><div class="line">    &lt;properties/&gt;</div><div class="line"></div><div class="line">&lt;/project&gt;</div></pre></td></tr></table></figure></p>

    </div>
    <p class="post-meta">
        <span class="post-cat">分类：
            <a class="cat-link" href="/coder957/categories/BackEnd/">BackEnd</a>
        </span>
        <span class="post-tags">
            标签：
            
    
        <a href="/coder957/tags/Maven/" title="Maven">Maven</a> / 
    
        <a href="/coder957/tags/热点文章/" title="热点文章">热点文章</a> / 
    
        <a href="/coder957/tags/博主推荐/" title="博主推荐">博主推荐</a>
    

        </span>
    </p>
</article>
<!-- 分享按钮 -->

  <div class="article-share clearfix text-center">
    <div class="share-area">
      <span class="share-txt">分享到：</span>
      <a href="javascript: window.open('http://service.weibo.com/share/share.php?url=' + encodeURIComponent(location.href) + '&title=' + document.title + '&language=zh_cn');" class="share-icon weibo"></a>
      <a href="javascript: alert('请复制链接到微信并发送');" class="share-icon wechat"></a>
      <a href="javascript: window.open('http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=' + encodeURIComponent(location.href) + '&title=' + document.title);" class="share-icon qqzone"></a>
      <a href="javascript: window.open('http://connect.qq.com/widget/shareqq/index.html?url=' + encodeURIComponent(location.href) + '&desc=Jelon个人博客&title=' + document.title + '&callback=' + encodeURIComponent(location.href));" class="share-icon qq"></a>
      <a href="javascript: window.open('http://shuo.douban.com/!service/share?href=' + encodeURIComponent(location.href) + '&name=' + document.title + '&text=' + document.title);" class="share-icon douban"></a>
    </div>
  </div>


<!-- 上一篇/下一篇 -->

<div class="article-nav clearfix">
    
    <span class="prev fl">
        上一篇<br >
        <a href="/coder957/2017/09/28/hibernate-annotation/">
            
                Hiberbate-Annotation
            
        </a>
    </span>
    

    
    <span class="next fr">
        下一篇<br >
        <a href="/coder957/2017/09/16/Java处理JSON/">
            
                Java处理JSON
            
        </a>
    </span>
    
</div>

<!-- 文章评论 -->

  <script src="/coder957/js/comment.js"></script>
  <div id="comments" class="comment">
    <!--
    <div class="sign-bar">
      GitHub 已登录!
      <span class="sign-link">登出</span>
    </div>
    <section class="box">
      <div class="com-avatar"><img src="/img/jelon.jpg" alt="avatar"></div>
      <div class="com-text">
        <div class="main">
          <textarea class="text-area-edited show" placeholder="欢迎评论！"></textarea>
          <div class="text-area-preview"></div>
        </div>
        <div class="switch">
          <div class="switch-item on">编辑</div>
          <div class="switch-item">预览</div>
        </div>
        <div class="button">提交</div>
      </div>
    </section>
    <section class="tips">注：评论支持 markdown 语法！</section>
    <section class="list-wrap">
      <ul class="list">
        <li>
          <div class="user-avatar">
            <a href="/">
              <img src="/img/jelon.jpg" alt="user-avatar">
            </a>
          </div>
          <div class="user-comment">
            <div class="user-comment-header">
              <span class="post-name">张德龙</span>
              <span class="post-time">2017年12月12日</span>
              <span class="like liked">已赞</span>
              <span class="like-num">2</span>
            </div>
            <div class="user-comment-body">333333</div>
          </div>
        </li>
        <li>
          <div class="user-avatar">
            <a href="/">
              <img src="/img/jelon.jpg" alt="user-avatar">
            </a>
          </div>
          <div class="user-comment">
            <div class="user-comment-header">
              <span class="post-name">刘德华</span>
              <span class="post-time">2017年12月12日</span>
              <span class="like">点赞</span>
              <span class="like-num">2</span>
            </div>
            <div class="user-comment-body">vvvvv</div>
          </div>
        </li>
      </ul>
      <div class="page-nav">
        <a href="javascript: void(0);" class="item">1</a>
        <a href="javascript: void(0);" class="item">2</a>
        <a href="javascript: void(0);" class="item current">3</a>
      </div>
    </section>
    -->
  </div>
  <script>
  JELON.Comment({
    container: 'comments',
    label: 'maven' || '2017/09/16/maven/',
    owner: 'FutaoSmile',
    repo: 'blog_comments',
    clientId: '149ec394071cfd7f0f47',
    clientSecret: 'd1c988f53efa3f0f8651799f8212cc8e2cab24b9'
  });
  </script>


            </div>

        </section>
        <!-- 侧栏部分 -->
<aside class="sidebar">
    <section class="widget">
        <h3 class="widget-hd"><strong>文章分类</strong></h3>
        <!-- 文章分类 -->
<ul class="widget-bd">
    
    <li>
        <a href="/coder957/categories/BackEnd/">BackEnd</a>
        <span class="badge">(19)</span>
    </li>
    
    <li>
        <a href="/coder957/categories/All/">All</a>
        <span class="badge">(2)</span>
    </li>
    
    <li>
        <a href="/coder957/categories/FrontEnd/">FrontEnd</a>
        <span class="badge">(1)</span>
    </li>
    
</ul>
    </section>

    
    <section class="widget">
        <h3 class="widget-hd"><strong>热门标签</strong></h3>
        <!-- 文章标签 -->
<div class="widget-bd tag-wrap">
  
    <a class="tag-item" href="/coder957/tags/Kotlin/" title="Kotlin">Kotlin (13)</a>
  
    <a class="tag-item" href="/coder957/tags/Git/" title="Git">Git (1)</a>
  
    <a class="tag-item" href="/coder957/tags/Java/" title="Java">Java (6)</a>
  
    <a class="tag-item" href="/coder957/tags/Collections/" title="Collections">Collections (1)</a>
  
    <a class="tag-item" href="/coder957/tags/Maven/" title="Maven">Maven (3)</a>
  
    <a class="tag-item" href="/coder957/tags/Hibernate/" title="Hibernate">Hibernate (2)</a>
  
    <a class="tag-item" href="/coder957/tags/Spring/" title="Spring">Spring (9)</a>
  
    <a class="tag-item" href="/coder957/tags/JSON/" title="JSON">JSON (1)</a>
  
    <a class="tag-item" href="/coder957/tags/XML/" title="XML">XML (1)</a>
  
    <a class="tag-item" href="/coder957/tags/热点文章/" title="热点文章">热点文章 (1)</a>
  
    <a class="tag-item" href="/coder957/tags/博主推荐/" title="博主推荐">博主推荐 (1)</a>
  
    <a class="tag-item" href="/coder957/tags/Ajax/" title="Ajax">Ajax (1)</a>
  
    <a class="tag-item" href="/coder957/tags/设计模式/" title="设计模式">设计模式 (1)</a>
  
    <a class="tag-item" href="/coder957/tags/资料/" title="资料">资料 (1)</a>
  
    <a class="tag-item" href="/coder957/tags/转载/" title="转载">转载 (1)</a>
  
</div>
    </section>
    

    

    
    <!-- 友情链接 -->
    <section class="widget">
        <h3 class="widget-hd"><strong>友情链接</strong></h3>
        <!-- 文章分类 -->
<ul class="widget-bd">
    
        <li>
            <a href="http://blog.sina.com.cn/u/1825875765" target="_blank" title="friendLink01">友情链接</a>
        </li>
    
        <li>
            <a href="http://blog.csdn.net/yeweiouyang" target="_blank" title="friendLink02">友情链接</a>
        </li>
    
        <li>
            <a href="http://xuanzh.cc/" target="_blank" title="friendLink03">友情链接</a>
        </li>
    
</ul>
    </section>
    
</aside>
<!-- / 侧栏部分 -->
    </div>

    <!-- 博客底部 -->
    <footer class="footer">
    &copy;
    
        2016-2017
    

    <a href="/coder957/">Peace and Love</a>
</footer>
<div class="back-to-top" id="JELON__backToTop" title="返回顶部">返回顶部</div>

    <!--博客js脚本 -->
    <!-- 这里放网站js脚本 -->
<script src="/coder957/js/main.js"></script>
</body>
</html>